Welcome! Log In Create A New Profile

Advanced

/boot/uEnv.txt ignored

Posted by balanga 
/boot/uEnv.txt ignored
March 11, 2019 08:06PM
I have a FAT partition on a USB stick which is not being read using normal envs. Can't understand why...

envs:-

uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

If i stop autoboot and enter:-
setenv load_bsdenv 'usb start; load usb 0:1 0x810000 /boot/uEnv.txt; env import -t 0x810000 $filesize'
setenv boot_bsd 'run load_bsdenv; boot'

and then run:-
run boot_bsd

I get:-
reading /boot/uEnv.txt
287 bytes read in 64 ms (3.9 KiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
reading ubldr
295973 bytes read in 90 ms (3.1 MiB/s)
CACHE: Misaligned operation at range [01000098, 01030c04]
CACHE: Misaligned operation at range [01030c04, 01031707]
CACHE: Misaligned operation at range [01031708, 010330f0]
CACHE: Misaligned operation at range [010330f0, 0103558b]
CACHE: Misaligned operation at range [01035590, 01036c98]
CACHE: Misaligned operation at range [01036c98, 01036cf4]
CACHE: Misaligned operation at range [01036cf4, 01036d5c]
CACHE: Misaligned operation at range [01036d5c, 01036e30]
CACHE: Misaligned operation at range [01036e30, 01036e3c]
## Starting application at 0x01000098 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7b12860

FreeBSD/arm U-Boot loader, Revision 1.2
(Thu Nov 30 14:06:37 GMT 2017 root@Test)

DRAM: 128MB
Number of U-Boot devices: 2
U-Boot env: loaderdev='usb 0:1'
Found U-Boot device: disk
  Checking unit=0 slice=1 partition=<auto>... good.
Booting from disk0s1:

uBoot clearly sees the disk:-
GoFlexHome> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexHome> ls usb 0:1 /
            .tmp/
            boot/
   295973   ubldr 
            tmp/
    12784   typescript.007 
    12310   typescript.008 
   314989   ubldr.pie 
      287   uenv.txt 
    12005   typescript 
    12005   typescript.006 
7 file(s), 3 dir(s)

What should I change so that /boot/uEnv.txt on this USB stick is read automatically?
Re: /boot/uEnv.txt ignored
March 11, 2019 08:36PM
Quote

If i stop autoboot and enter:-
setenv load_bsdenv 'usb start; load usb 0:1 0x810000 /boot/uEnv.txt; env import -t 0x810000 $filesize'
setenv boot_bsd 'run load_bsdenv; boot'


You don't do this explicitly. It is in the bootcmd. So to test the uEnv.txt, you would do

run bootcmd_uenv

You would put all envs necessary for booting BSD inside uEnv.txt. And

boot

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 03/12/2019 03:12AM by bodhi.
Re: /boot/uEnv.txt ignored
March 12, 2019 10:59AM
bodhi,

Maybe I didn't explain properly, my current /boot/uEnv.txt on a FAT partition on my USB stick contains:-

ootfile=ubldr.bin
loadaddr=0x02000000
fdt_file=db88f6281.dtb
uenvcmd=echo Booting FreeBSD from SD Card: ; mmcinfo && fatload mmc 0 ${loadaddr} ${bootfile} && bootelf

but it looks like uBoot does not seem to take any input from this file.

Can you suggest a single line that I can put in to show the environment has effected a change as a result of reading this file as I must have missed something... Also does it matter that the file is on a FAT partition which is case insensitive, so uEnv.txt might not be found?
Re: /boot/uEnv.txt ignored
March 13, 2019 02:44AM
balanga,

> but it looks like uBoot does not seem to take any
> input from this file.
>
> Can you suggest a single line that I can put in to
> show the environment has effected a change as a
> result of reading this file as I must have missed
> something... Also does it matter that the file is
> on a FAT partition which is case insensitive, so
> uEnv.txt might not be found?

As I said, you'd want to test your uEnv.tx by executing this command in serial console

run bootcmd_uenv

This command will find the /boot/uEnv.txt in the 1st partition of any disk drive partition. After executing it, you would then check the envs
printenv

Post the log here if you can't figure out what's happened in the above commands.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: /boot/uEnv.txt ignored
March 13, 2019 04:11AM
The problem may be due to my envs... If I install uboot.2016.05-tld-1.environment.bodhi.tar should I expect to boot OpenWrt?

ISTR that I needed to add/change something in the process of getting it working....

My current envs are:-
api_address=7b12860
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_lede
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_a
ddr $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_lede=run set_bootargs_lede; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:28:cc:00
fileaddr=800000
filesize=3e0000
if_netconsole=ping $serverip
ipaddr=192.168.1.23
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtddevname=rootfs
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
nc_ready=1
ncip=192.168.1.99
partition=nand0,0
preboot=run preboot_nc
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_net
console; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if t
est $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disk
num:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; do
ne
serverip=192.168.1.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=ncip
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Apologies for some of the above lines wrapping or getting truncated - problem with pasting....
Re: /boot/uEnv.txt ignored
March 13, 2019 04:56AM
As I asked above, list the content of your current uEnv.txt.

cat uEnv.txt

And then powerup, interrupt serial console and

run bootcmd_uenv
printenv

And post the entire log of the above session here.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/13/2019 11:40AM by bodhi.
Re: /boot/uEnv.txt ignored
March 13, 2019 10:44AM
cat boot/uEnv.txt:-
printenv
fatdev=usb 0:1
loaderdev=usb 0:1
bootfile=ubldr
fdtfile=db88f6281.dtb
kernel_addr_r=0x01000000
loadaddr=0x02000000
pxefile_addr_r=0x00100000
ramdisk_addr_r=0x02100000
scriptaddr=0x00000000
bootcmd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}

uBoot log:-
Script started on Wed Mar 13 16:16:42 2019
Command: cu -l /dev/cuaU1 -s 115200
Connected
    
    
U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -0700)
Seagate GoFlex Home
   
SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Unknown command 'ncip' - try 'help'
Hit any key to stop autoboot: 10 ... 0
GoFlexHome> usa. .b start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexHome> ls usb 0:1 /
            boot/
            tmp/
    12005   typescript
    12005   typescript.006
    12784   typescript.007
    12310   typescript.008
      287   uenv.txt
   295973   ubldr
   314989   ubldr.pie

7 file(s), 2 dir(s)

GoFlexHome> ls usb 0:1 /boot
            ./
            ../
      287   uenv.txt

1 file(s), 2 dir(s)

GoFlexHome> printenv
api_address=7b12860
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_lede
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_a
ddr $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_lede=run set_bootargs_lede; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:28:cc:00
fileaddr=800000
filesize=3e0000
if_netconsole=ping $serverip
ipaddr=192.168.1.23
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtddevname=rootfs
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
nc_ready=1
ncip=192.168.1.99
partition=nand0,0
preboot=run preboot_nc
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_net
console; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if t
est $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disk
num:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; do
ne
serverip=192.168.1.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=ncip
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3214/131068 bytes
GoFlexHome> reset
resetting ...

After reset...
U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -0700)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Using egiga0 device
host 192.168.1.2 is alive
Unknown command 'ncip' - try 'help'
Hit any key to stop autoboot: 10 ... 9 ... 8 ... 7 ... 6 ... 5 ... 4 ... 3 ... 2 ... 1 ... 0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     32              65536           00000000-01     0b

## 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 ...
reading /boot/uEnv.txt
287 bytes read in 63 ms (3.9 KiB/s)

no IDE devices available
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
reading /boot/uImage
** Unable to read file /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
Scan device ide

Reset IDE: ide_preinit failed
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 ...
reading /boot/uImage
** Unable to read file /boot/uImage **
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=1", size 255 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 512 (aligned 512), data offset: 2048
ubi0: good PEBs: 2040, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 797413225
ubi0: available PEBs: 0, total reserved PEBs: 2040, PEBs reserved for bad PEB handling: 40
Read 0 bytes from volume kernel to 800000
No size specified -> Using max size (2064384)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   ARM OpenWrt Linux-4.14.95
   Image Name:   ARM OpenWrt Linux-4.14.95
   Created:      2019-01-30  12:21:02 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2044079 Bytes = 1.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.95 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7627-753531d)) #0 Mon Jan 28 08:54:32 2019
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Seagate GoFlex Home
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from 0xc0700994 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 122264K/131072K available (4692K kernel code, 166K rwdata, 724K rodata, 1024K init, 208K bss, 8808K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05952a0   (5685 kB)
[    0.000000]       .init : 0xc0700000 - 0xc0800000   (1024 kB)
[    0.000000]       .data : 0xc0800000 - 0xc0829840   ( 167 kB)
[    0.000000]        .bss : 0xc0829840 - 0xc085d88c   ( 209 kB)
[    0.000000]        .bss : 0xc0829840 - 0xc085d88c   ( 209 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000115] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000139] pid_max: default: 32768 minimum: 301
[    0.000287] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000308] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000868] CPU: Testing write buffer coherency: ok
[    0.001639] Setting up static identity map for 0x100000 - 0x10003c
[    0.001888] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.004871] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004900] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.004990] pinctrl core: initialized pinctrl subsystem
[    0.006040] NET: Registered protocol family 16
[    0.006415] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.007336] cpuidle: using governor ladder
[    0.007694] Feroceon L2: Enabling L2
[    0.007738] Feroceon L2: Cache support initialised.
[    0.007991] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.011480] No ATAGs?
[    0.027561] SCSI subsystem initialized
[    0.028243] usbcore: registered new interface driver usbfs
[    0.028301] usbcore: registered new interface driver hub
[    0.028358] usbcore: registered new device driver usb
[    0.030288] clocksource: Switched to clocksource orion_clocksource
[    0.031067] NET: Registered protocol family 2
[    0.031665] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.031689] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.031707] TCP: Hash tables configured (established 1024 bind 1024)
[    0.031787] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.031809] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.031946] NET: Registered protocol family 1
[    0.033066] Crashlog allocated RAM at address 0x3f00000
[    0.034649] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.039002] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.039015] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.046779] io scheduler noop registered
[    0.046794] io scheduler deadline registered (default)
[    0.047960] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.071481] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.073532] console [ttyS0] disabled
[    0.073608] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.541311] console [ttyS0] enabled
[    0.545907] sata_mv f1080000.sata: slots 32 ports 2
[    0.557911] scsi host1: sata_mv
[    0.561238] ata1: SATA max UDMA/133 irq 32
[    0.565351] ata2: SATA max UDMA/133 irq 32
[    0.570055] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.576471] nand: Micron MT29F2G08AAD
[    0.580150] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.587832] Scanning device for bad blocks
[    0.808895] 2 cmdlinepart partitions found on MTD device orion_nand
[    0.815203] Creating 2 MTD partitions on "orion_nand":
[    0.820386] 0x000000000000-0x000000100000 : "u-boot"
[    0.825896] 0x000000100000-0x000010000000 : "ubi"
[    0.832518] libphy: Fixed MDIO Bus: probed
[    0.836863] libphy: orion_mdio_bus: probed
[    0.843432] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.852012] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:28:cc:00
[    0.860848] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.867401] ehci-pci: EHCI PCI platform driver
[    0.871925] ehci-orion: EHCI orion driver
[    0.876118] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.881673] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.889489] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    0.920301] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.926870] hub 1-0:1.0: USB hub found
[    0.930857] hub 1-0:1.0: 1 port detected
[    0.935234] usbcore: registered new interface driver usb-storage
[    0.941648] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.941648] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.948619] i2c /dev entries driver
[    0.952730] orion_wdt: Initial timeout 21 sec
[    0.962000] marvell-cesa f1030000.crypto: CESA device successfully registered
[    0.970030] NET: Registered protocol family 10
[    0.976141] Segment Routing with IPv6
[    0.979883] NET: Registered protocol family 17
[    0.984412] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.997444] 8021q: 802.1Q VLAN Support v1.8
[    1.004391] UBI: auto-attach mtd1
[    1.007733] ubi0: attaching mtd1
[    1.173300] ata1: SATA link down (SStatus 0 SControl F300)
[    1.300352] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.396761] ubi0: scanning is finished
[    1.413548] ubi0: attached mtd1 (name "ubi", size 255 MiB)
[    1.419085] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.426016] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.432761] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    1.439574] ubi0: good PEBs: 2040, bad PEBs: 0, corrupted PEBs: 0
[    1.445709] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    1.452974] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 797413225
[    1.462069] ubi0: available PEBs: 0, total reserved PEBs: 2040, PEBs reserved for bad PEB handling: 40
[    1.472120] block ubiblock0_1: created from ubi0:1(rootfs)
[    1.477629] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    1.484835] rtc-mv f1010300.rtc: setting system clock to 2019-03-13 16:18:41 UTC (1552493921)
[    1.493956] ubi0: background thread "ubi_bgt0d" started, PID 950
[    1.505129] ata2: SATA link down (SStatus 0 SControl F300)
[    1.514855] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.524935] Freeing unused kernel memory: 1024K
[    1.648254] usb-storage 1-1:1.0: USB Mass Storage device detected
[    1.654837] scsi host2: usb-storage 1-1:1.0
[    1.810312] random: fast init done
[    1.862313] init: Console is alive
[    1.865882] init: - watchdog -
[    1.966970] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.974263] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.984149] init: - preinit -
[    2.476545] random: jshn: uninitialized urandom read (4 bytes read)
[    2.549002] random: jshn: uninitialized urandom read (4 bytes read)
[    2.580885] random: jshn: uninitialized urandom read (4 bytes read)
[    2.659992] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[    2.669920] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[    2.677052] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    2.751726] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
[    2.762037] sd 2:0:0:0: [sda] 1953663 512-byte logical blocks: (1.00 GB/954 MiB)
[    2.769894] sd 2:0:0:0: [sda] Write Protect is off
[    2.775143] sd 2:0:0:0: [sda] No Caching mode page found
[    2.780506] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    2.795804]  sda: sda1
[    2.800652] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    5.319994] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[    5.329929] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.874597] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 1036
[    5.908501] UBIFS (ubi0:2): recovery needed
[    6.092973] UBIFS (ubi0:2): recovery completed
[    6.097516] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[    6.105413] UBIFS (ubi0:2): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    6.115390] UBIFS (ubi0:2): FS size: 252112896 bytes (240 MiB, 1954 LEBs), journal size 12644352 bytes (12 MiB, 98 LEBs)
[    6.126319] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[    6.132973] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 234AC211-8E54-4465-8622-CCD99B52B69A, small LPT model
[    6.147807] mount_root: switching to ubifs overlay
[    6.166072] urandom-seed: Seeding with /etc/urandom.seed
[    6.249935] procd: - early -
[    6.253390] procd: - watchdog -
[    7.067147] procd: - watchdog -
[    7.070543] procd: - ubus -
[    7.106998] urandom_read: 3 callbacks suppressed
[    7.107005] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.123604] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.130277] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.137578] procd: - init -
Please press Enter to activate this console.
[    7.321531] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.330786] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.344019] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.354070] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[    7.388715] xt_time: kernel timezone is -0000
[    7.398976] PPP generic driver version 2.4.2
[    7.404906] NET: Registered protocol family 24
[    7.411704] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.047687] br-lan: port 1(eth0) entered blocking state
[   12.052983] br-lan: port 1(eth0) entered disabled state
[   12.058460] device eth0 entered promiscuous mode
[   12.110503] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   14.713303] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   14.723239] br-lan: port 1(eth0) entered blocking state
[   14.728490] br-lan: port 1(eth0) entered forwarding state
[   14.735090] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.28.4 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.2, r7676-cddd7b4c77
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# fw_printenv
api_address=7b12860
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_lede
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_a
ddr $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_lede=run set_bootargs_lede; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:28:cc:00
fileaddr=800000
filesize=3e0000
if_netconsole=ping $serverip
ipaddr=192.168.1.23
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtddevname=rootfs
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
nc_ready=1
ncip=192.168.1.99
partition=nand0,0
preboot=run preboot_nc
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_net
console; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if t
est $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disk
num:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; do
ne
serverip=192.168.1.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=ncip
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15
root@OpenWrt:/#
Re: /boot/uEnv.txt ignored
March 13, 2019 11:42AM
balanga,

I had a typo up there!

Power up, interrupt serial console. And run the bootcmd_uenv the first thing, there is no need to run anything else before that.
run bootcmd_uenv
printenv

And don't run anything else either.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/13/2019 11:43AM by bodhi.
Re: /boot/uEnv.txt ignored
March 13, 2019 01:57PM
GoFlexHome> run bootcmd_uenv

starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     32              65536           00000000-01     0b

## 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 ...
reading /boot/uEnv.txt
287 bytes read in 63 ms (3.9 KiB/s)

no IDE devices available
Unknown command 'mmc' - try 'help'
importing envs ...

GoFlexHome> printenv

api_address=7b12860
arcNumber=3338
bootcmd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}
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_a
ddr $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_lede=run set_bootargs_lede; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootfile=ubldr
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:28:cc:00
fatdev=usb 0:1
fdtfile=db88f6281.dtb
fileaddr=810000
filesize=11f
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.23
kernel_addr_r=0x01000000
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
loadaddr=0x02000000
loaderdev=usb 0:1
mainlineLinux=yes
mtddevname=rootfs
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
nc_ready=1
ncip=192.168.1.99
partition=nand0,0
preboot=run preboot_nc
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_net
console; fi
pxefile_addr_r=0x00100000
ramdisk_addr_r=0x02100000
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if t
est $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disk
num:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scriptaddr=0x00000000
serverip=192.168.1.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=ncip
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=1
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3502/131068 bytes
GoFlexHome> reset

One day I will have to sit down and study what all these envs do. At the moment it seems like black magic :)

But I see from the above that

bootfile=ubldr

has been set so that the envs have been amended.
Re: /boot/uEnv.txt ignored
March 13, 2019 04:02PM
Yes. They were read in OK.

fatdev=usb 0:1
loaderdev=usb 0:1
bootfile=ubldr
fdtfile=db88f6281.dtb
kernel_addr_r=0x01000000
loadaddr=0x02000000
pxefile_addr_r=0x00100000
ramdisk_addr_r=0x02100000
scriptaddr=0x00000000
bootcmd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}

bootfile=ubldr
....
bootcmd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}

And so on.

However, that bootcmd in uEnv.txt will be ignored when you boot automatically. So you need something like this:

bootcmd_bsd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}

And set this permanently (similar to when you set up LEDE)

setenv bootcmd 'run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_lede'

So BSD, Debian, and LEDE will be tried in that order. Whichever command is successful (i.e. completed) first, will be the running system.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: /boot/uEnv.txt ignored
March 13, 2019 06:28PM
bodhi,

Many thanks for the help. I can now boot Debian, Arch Linux and OpenWrt on my GoFlex Home using the same uBoot.

I'll spend a bit of time trying to get FreeBSD booting as well.

Your help in flattening the learning curve of getting familiar with the system is much appreciated.
Re: /boot/uEnv.txt ignored
March 13, 2019 07:57PM
balanga,

> Many thanks for the help. I can now boot Debian,
> Arch Linux and OpenWrt on my GoFlex Home using the
> same uBoot.

Cool!

At one point, you should post your u-boot envs setup that boot these 3 distros here. Probably in a new thread, so that it will help others who are looking for clues how to set it up such an environment.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: /boot/uEnv.txt ignored
March 14, 2019 03:57AM
bodhi,

bodhi Wrote:
-------------------------------------------------------
>
> Cool!
>
> At one point, you should post your u-boot envs
> setup that boot these 3 distros here. Probably in
> a new thread, so that it will help others who are
> looking for clues how to set it up such an
> environment.


I hope to do that at some point. I've made a lot of mistakes over the last 18 months since I started with this and maybe some of my posts have helped people avoid them but, I still have much to learn. I'd like to hone these u-boot envs, since I don't understand a number and would rather remove them if not required.
Re: /boot/uEnv.txt ignored
March 14, 2019 04:11AM
balanga,

> learn. I'd like to hone these u-boot envs, since I
> don't understand a number and would rather remove
> them if not required.

Right. For example, these envs are transient. They are created on the fly during booting. But when you list them after executing some commands, they appear on the list.

fileaddr=810000
filesize=11f
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start

So to get a real set of permananent envs, it should be listed in Linux with fw_printenv. And then you woud compare them with my env text file in the u-boot release tarball (uboot.2016.05-tld-1.environment) to see what are the differences. And envs that you did not purposely saved (i.e for LEDE, Arch) are not needed to be saved.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: