|
Clone u-boot and environment settings August 18, 2019 04:30PM |
Registered: 9 years ago Posts: 17 |
|
Re: Clone u-boot and environment settings August 18, 2019 05:02PM |
Admin Registered: 13 years ago Posts: 18,591 |
fw_printenv > uEnv.txt
run bootcmd_uenvAfter this the envs in uEnv.txt will replace the existing ones. Modify them as you need or want to for this target box.
|
Re: Clone u-boot and environment settings August 18, 2019 05:13PM |
Registered: 9 years ago Posts: 17 |
|
Re: Clone u-boot and environment settings August 18, 2019 06:32PM |
Admin Registered: 13 years ago Posts: 18,591 |
Quote
bodhi
After you nandwrite the mtd0 backup to the target Pogo E02, you can change them using fw_setenv right away, no need to reboot.
|
Re: Clone u-boot and environment settings August 18, 2019 10:07PM |
Registered: 9 years ago Posts: 17 |
|
Re: Clone u-boot and environment settings August 19, 2019 12:42AM |
Admin Registered: 13 years ago Posts: 18,591 |
LABEL=rootfs / ext4 noatime,errors=remount-ro 0 1Try changing it (of course use ext3 if your current rootf is Ext3):
LABEL=ROOTFS / ext4 noatime,errors=remount-ro 0 1
|
Re: Clone u-boot and environment settings August 19, 2019 12:36PM |
Registered: 9 years ago Posts: 17 |
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_installed=1
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
|
Re: Clone u-boot and environment settings August 19, 2019 01:28PM |
Admin Registered: 13 years ago Posts: 18,591 |
Quote
I previously had Jeff's rescue system installed, but it's not working with the new environment variables. I think I need to add these back:
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_installed=1
setenv bootcmd_exec 'if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi' setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run rescue_bootcmd'
|
Re: Clone u-boot and environment settings August 19, 2019 03:51PM |
Registered: 9 years ago Posts: 17 |
|
Re: Clone u-boot and environment settings August 19, 2019 05:24PM |
Admin Registered: 13 years ago Posts: 18,591 |
|
Re: Clone u-boot and environment settings August 19, 2019 05:31PM |
Registered: 9 years ago Posts: 17 |
|
Re: Clone u-boot and environment settings August 19, 2019 06:38PM |
Admin Registered: 13 years ago Posts: 18,591 |
|
Re: Clone u-boot and environment settings August 19, 2019 07:03PM |
Registered: 9 years ago Posts: 17 |
|
Re: Clone u-boot and environment settings August 19, 2019 08:28PM |
Admin Registered: 13 years ago Posts: 18,591 |
Quote
Booting Other Linux Distros on Pogoplug
How to boot Arch Linux ARM with bodhi's released u-boot
How to boot Void Linux with bodhi's released u-boot
|
Re: Clone u-boot and environment settings August 21, 2019 02:09PM |
Registered: 9 years ago Posts: 17 |
set_bootargs=setenv bootargs console=ttyS0,115200 root=$usb_root rootdelay=10 $mtdparts $custom_params bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run rescue_bootcmd bootcmd_exec=if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi dtb_file=/boot/dtbs/kirkwood-pogo_e02.dtb
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -0700)
Pogo E02
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
Partition Map for USB device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 30863360 af0e515c-01 83
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** File not found /boot/uImage **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Unknown command 'ide' - try 'help'
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** File not found /boot/uImage **
NAND read: device 0 offset 0x100000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.3.2-kirkwide
Created: 2012-10-29 22:52:12 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3627768 Bytes = 3.5 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Starting kernel ...
|
Re: Clone u-boot and environment settings August 21, 2019 11:40PM |
Admin Registered: 13 years ago Posts: 18,591 |
load_image=echo loading zImage ...; load $bootdev $device $load_uimage_addr /boot/zImage set_bootargs=setenv bootargs console=ttyS0,115200 root=$usb_root rootdelay=10 $mtdparts $custom_params bootcmd_exec=if run load_image; then; if run load_initrd; then if run load_dtb; then bootz $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootz $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootz $load_uimage_addr - $load_dtb_addr; else bootz $load_uimage_addr; fi; fi; fi dtb_file=/boot/dtbs/kirkwood-pogo_e02.dtb
|
Re: Clone u-boot and environment settings August 22, 2019 04:10PM |
Registered: 9 years ago Posts: 17 |