Problem in flashing NSA325 u-boot May 10, 2017 03:17PM |
Registered: 6 years ago Posts: 7 |
/e-data/4089-AD8E/tools # flash_erase /dev/mtd0 0 4 Erasing 128 Kibyte @ 60000 -- 100 % complete
/e-data/4089-AD8E # nandwrite /dev/mtd0 kirkwood/generic/u-boot-nsa325/u-boot.kw b Input file is not page aligned Data did not fit into device, due to bad blocks : Success
MTD device name Device offset Env. size Flash sector size Number of sectors NAND example /dev/mtd1 0x0000 0x20000 0x20000 4
mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 00080000 00020000 "key_store" mtd3: 00080000 00020000 "info" mtd4: 00a00000 00020000 "etc" mtd5: 00a00000 00020000 "kernel_1" mtd6: 02fc0000 00020000 "rootfs1" mtd7: 00a00000 00020000 "kernel_2" mtd8: 02fc0000 00020000 "rootfs2"
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000 bootdelay=2 baudrate=115200 loads_echo=0 ipaddr=10.4.52.165 serverip=10.4.52.7 rootpath=/srv/ubuntu netmask=255.255.255.0 nandEcc=1bit kernel_addr=C80000 MODEL_ID=AA03 PRODUCT_NAME=NSA-325 FEATURE_BIT=00 CONTRY_TYPE=FF VENDOR_NAME=MitraStar Technology Corp. run_diag=yes ethaddr=FC:F5:28:00:00:00
Warning: Bad CRC, using default environment bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000 bootdelay=2 baudrate=115200 nandEcc=1bit kernel_addr=480000 MODEL_ID=A203 PRODUCT_NAME=NSA-310 FEATURE_BIT=00 CONTRY_TYPE=FF VENDOR_NAME=ZyXEL Communications Corp.
Re: Problem in flashing NSA325 u-boot May 10, 2017 03:35PM |
Admin Registered: 12 years ago Posts: 17,629 |
mtd0: 00100000 00020000 "uboot"
Quote
When I'm deleting 4 blocks it only deletes one.
/e-data/4089-AD8E/tools # flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete
dmesg | grep -i bad
/e-data/4089-AD8E # nandwrite /dev/mtd0 kirkwood/generic/u-boot-nsa325/u-boot.kwb
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 May 10, 2017 03:42PM |
Registered: 6 years ago Posts: 7 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 May 10, 2017 03:47PM |
Admin Registered: 12 years ago Posts: 17,629 |
flash_erase /dev/mtd0 0 0
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 May 10, 2017 04:02PM |
Registered: 6 years ago Posts: 7 |
/e-data/4089-AD8E/tools # flash_erase /dev/mtd0 0 0 Erasing 128 Kibyte @ e0000 -- 100 % complete /e-data/4089-AD8E/tools # nandwrite /dev/mtd0 /e-data/4089-AD8E/tools/u-boot.kwb Input file is not page aligned Data did not fit into device, due to bad blocks : Success
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 May 10, 2017 04:18PM |
Registered: 6 years ago Posts: 7 |
/ # nandwrite /dev/mtd0 /e-data/4089-AD8E/uboot.2016.05-tld-1.nsa325.mtd0.kwb Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000
/ # fw_printenv Warning: Bad CRC, using default environment bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 May 11, 2017 12:42AM |
Admin Registered: 12 years ago Posts: 17,629 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 May 11, 2017 03:39AM |
Admin Registered: 12 years ago Posts: 17,629 |
Re: Problem in flashing NSA325 u-boot May 11, 2017 01:34PM |
Registered: 6 years ago Posts: 7 |
Re: Problem in flashing NSA325 u-boot May 11, 2017 02:54PM |
Admin Registered: 12 years ago Posts: 17,629 |
Quote
C. Add uEnv.txt to /boot directory
Create a text file in /boot directory with the content in the format that u-boot envs are listed.
Examples:
These 4 examples are only to demonstrate the syntax in uEnv.txt (they might or might not apply to your current settings):
- Load appropriate DTB file for the kernel to run GoFlex Net box.
- Use only USB drives for kernel and rootfs during booting
- Use SD card, USB and SATA for booting. The kernel and rootfs search order is as they are appeared on the list: mmc, usb, ide.
- Define that there are 8 storage devices (i.e. disk partitions).
cat /boot/uEnv.txt
dtb_file=/boot/dts/kirkwood-goflexnet.dtb devices=usb devices=mmc usb ide disks=0 1 2 3 4 5 6 7
Re: Problem in flashing NSA325 u-boot May 12, 2017 03:19AM |
Admin Registered: 12 years ago Posts: 17,629 |