Hi ,
i have a Zyxel NSA325v2 flashed successfully with openwrt.
I followed the guide from here
https://openwrt.org/toh/zyxel/nsa325
usb reset
fatload usb 0 0x1000000 u-boot.kwb
nand erase 0x0 0x100000
nand write 0x1000000 0x00000 0x100000
reset
Now we set the correct environment variables:
setenv mtdparts 'mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)'
setenv bootcmd 'run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000'
saveenv
reset
After the device reboots into the OpenWrt u-boot we adjust the device's MAC address (adjust the values, see the sticker under the NAS case):
setenv ethaddr AB:CD:EF:00:00:00
saveenv
Then we proceed to flashing OpenWrt itself (which we called nsa325.bin for less typing):
usb reset
fatload usb 0 0x2000000 nsa325.bin
nand erase.part ubi
nand write 0x2000000 ubi 0x600000
Note that the number at the end indicates the size to write in hex. In this case up to 6 MiB. Increasing this number should work but has not been tested.
And now we reboot to OpenWrt:
reset
Box is running fine, and i love having no external device nor a need for an internal drive as its running from nand.
I tried lxc running on that box in combination with debian. That kind of works, but there are some problems .
Therefore i deciced to give debian another try and i started reading on your forum, starting with uboot.
And there is my first problem:
In your uboot flashing guide you do cleary explain that mtd0 should be 1MB (0x00100000)
https://forum.doozan.com/read.php?3,12381
but my layout looks like this
cat /proc/mtd
dev: size erasesize name
mtd0: 000c0000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 07ec0000 00020000 "ubi"
fw_printenv ethaddr
ethaddr=5C:F4:AB:50:0C:89
fw_printenv
baudrate=115200
bootcmd=run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootdelay=3
console=console=ttyS0,115200
ethact=egiga0
ethaddr=5C:F4:AB:50:0C:89
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)
stderr=serial
stdin=serial
stdout=serial
I not sure what to do now? Can i use that already flashed uboot , and just change it to boot from usb? which part needs to be changed?
I have another linux-box and already created that ext3, rootfs - labeled usb stick
Thanks for you help :-)
i have a Zyxel NSA325v2 flashed successfully with openwrt.
I followed the guide from here
https://openwrt.org/toh/zyxel/nsa325
usb reset
fatload usb 0 0x1000000 u-boot.kwb
nand erase 0x0 0x100000
nand write 0x1000000 0x00000 0x100000
reset
Now we set the correct environment variables:
setenv mtdparts 'mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)'
setenv bootcmd 'run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000'
saveenv
reset
After the device reboots into the OpenWrt u-boot we adjust the device's MAC address (adjust the values, see the sticker under the NAS case):
setenv ethaddr AB:CD:EF:00:00:00
saveenv
Then we proceed to flashing OpenWrt itself (which we called nsa325.bin for less typing):
usb reset
fatload usb 0 0x2000000 nsa325.bin
nand erase.part ubi
nand write 0x2000000 ubi 0x600000
Note that the number at the end indicates the size to write in hex. In this case up to 6 MiB. Increasing this number should work but has not been tested.
And now we reboot to OpenWrt:
reset
Box is running fine, and i love having no external device nor a need for an internal drive as its running from nand.
I tried lxc running on that box in combination with debian. That kind of works, but there are some problems .
Therefore i deciced to give debian another try and i started reading on your forum, starting with uboot.
And there is my first problem:
In your uboot flashing guide you do cleary explain that mtd0 should be 1MB (0x00100000)
https://forum.doozan.com/read.php?3,12381
but my layout looks like this
cat /proc/mtd
dev: size erasesize name
mtd0: 000c0000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 07ec0000 00020000 "ubi"
fw_printenv ethaddr
ethaddr=5C:F4:AB:50:0C:89
fw_printenv
baudrate=115200
bootcmd=run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootdelay=3
console=console=ttyS0,115200
ethact=egiga0
ethaddr=5C:F4:AB:50:0C:89
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)
stderr=serial
stdin=serial
stdout=serial
I not sure what to do now? Can i use that already flashed uboot , and just change it to boot from usb? which part needs to be changed?
I have another linux-box and already created that ext3, rootfs - labeled usb stick
Thanks for you help :-)