Apologies for this not necessarily relating to FreeBSD, but hopefully someone here will be able to shed some light on a problem I'm having writing to NAND.
I'm following some instructions for installing OpenWrt on a GoFlex Home device here https://openwrt.org/toh/seagate/goflexhome
in the section
Install u-boot and OpenWrt 18.06.1 into NAND via serial cable and tftp-server
It seems fairly straightforward:-
The problem was that I got:-
Someone mentioned that
0x94344 is not an integer division of 1024 (1K). NAND block is 128K.
but have no idea what that means, maybe someone could explain...
I keep wondering if it would be possible to install FreeBSD in NAND at some point, if I can get this working....
I'm following some instructions for installing OpenWrt on a GoFlex Home device here https://openwrt.org/toh/seagate/goflexhome
in the section
Install u-boot and OpenWrt 18.06.1 into NAND via serial cable and tftp-server
It seems fairly straightforward:-
Code:
download from tftp-server u-boot.kwb file to RAM start offset 0x6400000
tftp 0x6400000 u-boot.kwb
or
tftpboot 0x6400000 u-boot.kwb
Bytes transferred = 607044 (94344 hex) ← this number is needed for nand write
erase nand start from 0x0 size 0x100000
nand erase 0x0 0x100000
write nand from RAM start offset 0x6400000 to nand start 0x0 size 0x94344
nand write 0x6400000 0x0 0x94344
reboot device
reset
now you are rebooting in the new u-boot
Code:
NAS>> nand write 0x640000 0x0 0x94344
NAND write: device 0 offset 0x0, size 0x94344
nand_write_ecc: Attempt to write not page aligned data
0 bytes written: ERROR
0x94344 is not an integer division of 1024 (1K). NAND block is 128K.
but have no idea what that means, maybe someone could explain...
I keep wondering if it would be possible to install FreeBSD in NAND at some point, if I can get this working....