Welcome! Log In Create A New Profile

Advanced

Update uboot from 2016.05

Posted by SiliCAT 
Update uboot from 2016.05
January 22, 2018 09:25AM
A list of only 6 checked items, that is what I need to do:

☐ Check /etc/fw_env.config and /proc/mtd
☐ Set ethaddr
☑ Dump NAND mtd0 and Save envs
☑ No bad block
────────────
☑ Extract the archive
☑ Erase mtd0
☑ Write image to NAND
────────────
☐ Flashing default u-boot envs image
────────────
☑ Double check uBoot envs 
☐ Set up netconsole

I think I can skip the task of flashing default envs image, below is a diff of my current envs and the uboot.2016.05-tld-1.environment
1d0
< arcNumber=2097
11d9
< ethaddr=52:3b:20:9c:11:51
13d10
< ipaddr=192.168.0.231
17d13
< dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
24d19
< machid=0x831
27d21
< mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
29d22
< preboot_nc=run if_netconsole start_netconsole
31d23
< serverip=192.168.0.220
43a36,44
> arcNumber=3960
> machid=f78
> mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
> ethaddr=**:**:**:**:**:**
> dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
> preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
> preboot=run preboot_nc
> ipaddr=172.16.16.117
> serverip=172.16.16.118



Edited 1 time(s). Last edit at 01/22/2018 10:07AM by SiliCAT.
Re: Update uboot from 2016.05
January 22, 2018 02:23PM
SiliCAT,

Everything looks OK.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Update uboot from 2016.05
January 22, 2018 06:19PM
Hi bodhi,
Thank you for caring for my to-do-list.
I will burn the nand these days.

- SiliCAT



Edited 1 time(s). Last edit at 01/22/2018 06:26PM by SiliCAT.
Re: Update uboot from 2016.05
January 22, 2018 07:17PM
I made a stupid mistake, I carelessly flashed the environment file instead of the environment.img
Is there any potential damage for my Pogo?
root@Pogoplug:~/burn# ~/tools/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment
Input file is not page-aligned. Use the padding option.
nandwrite: error!: Data was only partially written due to error
           error 0 (Success)
Re: Update uboot from 2016.05
January 22, 2018 07:19PM
SiliCAT Wrote:
-------------------------------------------------------
> I made a stupid mistake, I carelessly flashed the
> environment file instead of the environment.img
> Is there any potential damage for my Pogo?
>
> root@Pogoplug:~/burn# ~/tools/nandwrite -s 786432
> /dev/mtd0 uboot.2016.05-tld-1.environment
> Input file is not page-aligned. Use the padding
> option.
> nandwrite: error!: Data was only partially written
> due to error
>            error 0 (Success)
>

No worry, do flash_erase and nandwrite again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: