Hello gentleman,
I made some changes in uboot. But nothing regarding the flash nand memory (to my way of thinking). But afterwards I can not access the nand flash any more. I also checked the original uboot from F+S and compared the sourced and enviroment variables. My modified UBootEnv can be seen under [1].
I also noticed that some variables are not there anymore (see [2]). But when I set them and try to work with the nand flash they disappear and I get the following error:
unexpected character 'r' at the end of partition
What variables needs to be set to access the nand flash memory?
Thanks so far.
[2]:
mtddevnum=0
partition=nand0,0
[1]:
Code
- efusA9X # printenv
- EEPROM_ver=01.01.01
- HW_ver=01
- MAC_base=00:05:51
- arch=fsimx6sx
- baudrate=115200
- bootargs=console=ttymxc0,115200 login_tty=ttymxc0,115200 mtdparts=gpmi-nand:256k(NBoot)ro,768k(UserDef),256k(Refresh)ro,768k(UBoot)ro,256k(UBootEnv)rw,8m(Kernel)ro,1792k(FDT)ro,-(w
- bootcmd=run set_bootargs; run kernel; run fdt
- bootdelay=0
- bootfdt=efusa9x.dtb
- bootfile=uImage
- console=console=ttymxc0,115200
- eth1addr=00:05:51:00:00:05
- ethact=FEC1
- ethaddr=00:05:51:00:00:04
- ethprime=FEC1
- fdt=nand read 81000000 FDT; bootm 80800000 - 81000000
- fdt_high=ffffffff
- gatewayip=192.168.255.253
- installcheck=undef
- ipaddr=192.168.255.129
- kernel=nboot Kernel
- loadaddr=80800000
- login=login_tty=ttymxc0,115200
- m4=nand read . UserDef ${m4size} && cp.b $loadaddr ${m4addr} ${m4size} && dcache flush; bootaux ${m4addr}
- m4support=y
- mem=1046528k
- mode=rw
- mtdids=nand0=gpmi-nand
- mtdparts=mtdparts=gpmi-nand:256k(NBoot)ro,768k(UserDef),256k(Refresh)ro,768k(UBoot)ro,256k(UBootEnv)rw,8m(Kernel)ro,1792k(FDT)ro,-(TargetFS)
- netdev=eth1
- netmask=255.255.255.0
- platform=efusa9x
- recovercheck=undef
- reserved_ram_size=10000
- rootfs=rootfstype=ubifs ubi.mtd=TargetFS root=ubi0:rootfs
- rootpath=/rootfs
- sercon=ttymxc0
- serverip=192.168.255.253
- set_bootargs=setenv bootargs ${console} ${login} ${mtdparts} ${network} ${rootfs} ${mode} ${init} ${extra}
- set_bootfdt=setenv bootfdt ${platform}.dtb
- set_updatescript=setenv updatescript ${platform}/uboot/update.scr
- updatecheck=tftp
- updatescript=efusa9x/uboot/update.scr
- Environment size: 1670/16380 bytes
- efusA9X # update
- ---- Trying update from tftp with efusa9x/uboot/update.scr ----
- Using FEC1 device
- TFTP from server 192.168.255.253; our IP address is 192.168.255.129
- Filename 'efusa9x/uboot/update.scr'.
- Load address: 0x80800000
- Loading:
- *
- 259.8 KiB/s
- done
- Bytes transferred = 1332 (0x534)
- Loaded!
- Check to update UBOOT.
- Update uboot from release # to #1.
- Using FEC1 device
- TFTP from server 192.168.255.253; our IP address is 192.168.255.129
- Filename 'efusa9x/uboot/1/1_efusa9x.nb0'.
- Load address: 0x80800000
- Loading:
- ################################################################ 511 KiB
- 1.9 MiB/s
- done
- Bytes transferred = 524288 (0x80000)
- NAND erase.part: unexpected character 'r' at the end of partition
- ----! UBOOT Update failed to finished without errors. !----
- ---- update COMPLETE! ----
- efusA9X # nand erase.part UBoot
- NAND erase.part: unexpected character 'r' at the end of partition