OpenWrt Forum Archive

Topic: DB120-like board, why so many of them? which to download?

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

chips: (AR9344+9582+8035)
the serial port print the following at restart,

U-Boot 1.1.4 (Jan  6 2012 - 15:25:26)

U-boot DB120
DRAM: 
sri
Wasp 1.2
wasp_ddr_initial_config(255): (32bit) ddr2 init
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 195k for U-Boot at: 87fcc000
Reserving 192k for malloc() at: 87f9c000
Reserving 44 Bytes for Board Info at: 87f9bfd4
Reserving 36 Bytes for Global Data at: 87f9bfb0
Reserving 128k for boot params() at: 87f7bfb0
Stack Pointer at: 87f7bf98
Now running in RAM - U-Boot at: 87fcc000
id read 0x100000ff
flash size 16MB, sector count = 256
Flash: 16 MB
pci_init_board: PCIe PLL not set for 40MHz refclk
BOARD IS NOT CALIBRATED!!!
In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
No valid address in Flash. Using fixed address
wasp  reset mask:c03300
WASP  ----> ar803x PHY *
: cfg1 0xf cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
Ar803x Phy reg init
Init atheros ar803x phy...ok
Phy 0: atheros AR8035
eth0 up
eth0
Hit any key to stop autoboot:  0

ar7240> pri
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
dir=
lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}db12x${bc}-jffs2&&erase 0x9f050000 +0x630000&&cp.b $fileaddr 0x9f050000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize&&cp.b $fileaddr 0x9f680000 $filesize
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),1088k(uImage),14336k(rootfs),512k(config),64k(productinfo),64k(ART)
bootcmd=bootm 0x9f050000
ethact=eth0
serverip=192.168.1.102
ipaddr=192.168.1.5
stdin=serial
stdout=serial
stderr=serial

Environment size: 705/65532 bytes

Using openwrt, build to get many Bins:

md5sums
openwrt-ar71xx-generic-db120-jffs2-sysupgrade.bin
openwrt-ar71xx-generic-db120-kernel.bin
openwrt-ar71xx-generic-db120-rootfs-jffs2.bin
openwrt-ar71xx-generic-db120-rootfs-squashfs.bin
openwrt-ar71xx-generic-db120-squashfs-sysupgrade.bin
openwrt-ar71xx-generic-nbg460n_550n_550nh-u-boot.bin
openwrt-ar71xx-generic-rootfs.tar.gz
openwrt-ar71xx-generic-root.jffs2-128k
openwrt-ar71xx-generic-root.jffs2-256k
openwrt-ar71xx-generic-root.jffs2-64k
openwrt-ar71xx-generic-root.squashfs
openwrt-ar71xx-generic-root.squashfs-64k
openwrt-ar71xx-generic-uImage-gzip.bin
openwrt-ar71xx-generic-uImage-lzma.bin
openwrt-ar71xx-generic-vmlinux.bin
openwrt-ar71xx-generic-vmlinux.elf
openwrt-ar71xx-generic-vmlinux.gz
openwrt-ar71xx-generic-vmlinux.lzma
openwrt-ar71xx-generic-vmlinux-lzma.elf
packages
uboot-ar71xx-nbg460n_550n_550nh

What can i do next?

heng.dong@163.com

continue,

it seems that i should modify the mtd part info when compiling the kernel, according to the mtd info in U-boot. but I don't know where to find it.

openwrt-ar71xx-generic-db120-squashfs-sysupgrade.bin should be the right one.

well, i found the 2 files:  kernel.bin and rootfs-jffs2.bin together work with my AP! unfortunately, my network doesn't work.

so there comes another puzzle:  if only i configure the interface by editing the /etc/config/network, and when I restart, the uboot prints:

bad magic number, and there is nothing i can do but to re-download the 2 bins again and again!  it's that magic number is related to md5sums,

Any thing I can do to let it ignore the magic number?

The discussion might have continued from here.