found this mentioned here:
http://paxym.com/Paxym_Updates_Embedded_SW.html


uboot object code patched to fix bootcmd bug on Buffalo ?     not sure what 
they are talking bout.  some extreme uboot hacking



________________________________
 From: Syed Asmat <[email protected]>
To: [email protected] 
Sent: Thursday, March 7, 2013 12:24 PM
Subject: Re: [OpenWrt-Users] Buffalo U-BOOT 1.01 BOOTP support
 



same here. Buffalo WZR-HP-AG300H does not respect the changes to bootcmd  and 
neither to bootdelay variables. Looks like Buffalo has modified U-boot to 
reduce image size.  We've been trying to fix this for many weeks. This is 
blocking our project. I suppose the N300/N600/N900  DHP model, WZR-HP-G300NH 
and all similar  AirStation models suffer from this Uboot bug.
Ashish


OpenWRT users. My goal is to make Buffalo WZR-HP-AG300H to boot from bootp 
protocol, automatically. I successfully modified the mtd3 (u-boot-env), without 
BAD CRC error. Also I changed u-boot-env's 
from bootcmd=bootm BF060000
to bootcmd=bootp BF060000; bootm - bootcmd So far so good. A trouble is, U-BOOT 
1.01 does not seem to care about bootcmd; it does not pick up the change I 
made. It always enters into TFTPS (TFTP Server) mode for 4 seconds. After 
timeout, it just begins to boot from flash, instead of bootp. Does anyone have 
a solution here? Thank you,
Jiwoong --- Some logs ---  ar7100> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init 
mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1152k at 384k(uImage),6592k 
at 1536k(rootfs),64k at 320k(ART),64k at 8128k(properties),8192k at 
8192k(flash1),16384k at 16384k(flash2)
baudrate=115200
ethaddr=02:AA:BB:CC:DD:20
ipaddr=192.168.11.1
serverip=192.168.11.2
fw_eaddr=BF060000 BEFFFFFF
uboot_eaddr=BF000000 BF03FFFF
u_fw=erase $fw_eaddr; cp.fw $fileaddr BF060000 $filesize; bootm BF060000;
ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.fw $fileaddr BF060000 
$filesize; bootm BF060000;
melco_id=RD_BB10020
hw_rev=0
tftp_wait=4
DEF-p_wireless_ath00_11bg-authmode=psk
DEF-p_wireless_ath00_11bg-crypto=tkip+aes
DEF-p_wireless_ath00_11bg-authmode_ex=mixed-psk
DEF-p_wireless_ath10_11a-authmode=psk
DEF-p_wireless_ath10_11a-crypto=tkip+aes
DEF-p_wireless_ath10_11a-authmode_ex=mixed-psk
custom_id=0
buf_ver=1.01
region=US
accept_open_rt_fmt=1
tmp_ram=84000000
tmp_bottom=88000000
build_date=Jan 14 2011 - 05:47:09
DEF-p_wireless_ath00_11bg-wpapsk=t35xm34u8t8h8
DEF-p_wireless_ath10_11a-wpapsk=t35xm34u8t8h8
pincode=51902391
buf_crc=F8D6DD85
bootcmdold=bootm BF060000
uboot_ethaddr=10:6F:3F:28:9A:50
bootcmd=bootp BF060000; bootm
ut_ubootold=tftp=84000000 u-boot.bin; protect off BF000000 BF03FFFF; erase 
BF000000 BF03FFFF; cp.b BF000000 ;
ut_uboot=run bootcmd
stdin=serial
stdout=serial
stderr=serial
loadaddr=84000000
ethact=eth0 Boot sequence is
DRAM:  128 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 266k for U-Boot at: 83fbc000
Reserving 192k for malloc() at: 83f8c000
Reserving 44 Bytes for Board Info at: 83f8bfd4
Reserving 36 Bytes for Global Data at: 83f8bfb0
Reserving 128k for boot params() at: 83f6bfb0
Stack Pointer at: 83f6bf98
Now running in RAM - U-Boot at: 83fbc000
flash bank #0 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256]
flash bank #1 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256]
Flash: 32 MB
In:    serial
Out:   serial
Err:   serial
Memory Test
uboot use  83F6BFB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000  Writing...  Reading...
Memory Test start(84000000) end(88000000) size(04000000)
Pattern 00000000  Writing...  Reading...
Memory Test OK
### buf_ver=[1.01] U-Boot Ver.=[1.01]
### build_date(env)=[Jan 14 2011 - 05:47:09] build_date(bin)=[Jan 14 2011 - 
05:47:09]
ag7100_enet_initialize...
Reading MAC Address from ENV(0x83f8c489)
Port 0, Neg Success
Port 1, Neg Success
Port 2, Neg Success
Port 3, Neg Success
eth0: Phy Specific Status=0010
eth0: Phy Specific Status=0010
eth0: Phy Specific Status=0010
eth0: Phy Specific Status=0010;leth0: 10:6f:3f:28:9a:50
eth0 up
Reading MAC Address from ENV(0x83f8c489)
Port 4, Neg Success
eth1: Phy Specific Status=0010
eth1: 10:6f:3f:28:9a:51
eth1 up
eth0  10:6F:3F:28:9A:50
, eth1  10:6F:3F:28:9A:51 eth0 link down tftp server(receive) go, waiting:4[sec]
eth0 link down
Load address: 0x84000000 TftpServer Timeout;
no file was loaded.
...
then read flash memory to load .. ---
Jiwoong Lee, PhD
Wireless Software Architect
Accelera Mobile Broadband 

_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to