<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>/boot/uEnv.txt ignored</title>
        <description>I have a FAT partition on a USB stick which is not being read using normal envs. Can&#039;t understand why...

 envs:-

[code]
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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
[/code]

If i stop autoboot and enter:-
[code]
setenv load_bsdenv &#039;usb start; load usb 0:1 0x810000 /boot/uEnv.txt; env import -t 0x810000 $filesize&#039;
setenv boot_bsd &#039;run load_bsdenv; boot&#039;
[/code]

and then run:-
[code]
run boot_bsd
[/code]

I get:-
[code]
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=&#039;usb 0:1&#039;
Found U-Boot device: disk
  Checking unit=0 slice=1 partition=... good.
Booting from disk0s1:
[/code]

uBoot clearly sees the disk:-
[code]
GoFlexHome&gt; 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&gt; 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)

[/code]

What should I change so that /boot/uEnv.txt on this USB stick is read automatically?</description>
        <link>https://forum.doozan.com/read.php?3,80444,80444#msg-80444</link>
        <lastBuildDate>Wed, 11 Mar 2026 05:06:50 -0500</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,85364#msg-85364</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,85364#msg-85364</link>
            <description><![CDATA[ balanga,<br />
<br />
<br />
&gt; &gt; <pre class="bbcode">
&gt; &gt; Script started on Sat Mar 30 07:21:22 2019
&gt; &gt; Command: cu -l /dev/cuaU0 -s 115200
&gt; &gt; Connected
&gt; &gt; 
&gt; &gt; Hit any key to stop autoboot:  3 ??? 2 ??? 1 ???
&gt; 0
&gt; &gt; 
&gt; &gt; Initializing devices...
&gt; &gt; starting USB...
&gt; &gt; USB0:   USB EHCI 1.00
&gt; &gt; scanning bus 0 for devices... 1 USB Device(s)
&gt; &gt; found
&gt; &gt;        scanning usb for storage devices... 0
&gt; &gt; Storage Device(s) found
&gt; &gt; 
&gt; &gt; Reset IDE: Bus 0: OK Bus 1: not available  
&gt; &gt;   Device 0: Model: WDC WD3200AAJS-00L7A0  Firm:
&gt; &gt; 01.03E01 Ser#:  WD-WMAV2HZ97868
&gt; &gt;             Type: Hard Disk
&gt; &gt;             Supports 48-bit addressing
&gt; &gt;             Capacity: 305245.3 MB = 298.0 GB
&gt; &gt; (625142448 x 512)
&gt; &gt; Loading envs from usb 0...
&gt; &gt; ** Bad device usb 0 **
&gt; &gt; Loading envs from usb 1...
&gt; &gt; ** Bad device usb 1 **
&gt; &gt; Loading envs from ide 0...
&gt; &gt; 136 bytes read in 28 ms (3.9 KiB/s)
&gt; &gt; ... envs loaded
&gt; &gt; importing envs ...
&gt; &gt; running scan_disk ...
&gt; &gt; Scan device usb
&gt; &gt; device usb 0:1
&gt; &gt; ** Bad device usb 0 **
&gt; &gt; device usb 1:1
&gt; &gt; ** Bad device usb 1 **
&gt; &gt; Scan device ide
&gt; &gt; 
&gt; &gt; Reset IDE: Bus 0: OK Bus 1: not available  
&gt; &gt;   Device 0: Model: WDC WD3200AAJS-00L7A0  Firm:
&gt; &gt; 01.03E01 Ser#:  WD-WMAV2HZ97868
&gt; &gt;             Type: Hard Disk
&gt; &gt;             Supports 48-bit addressing
&gt; &gt;             Capacity: 305245.3 MB = 298.0 GB
&gt; &gt; (625142448 x 512)
&gt; &gt; device ide 0:1
&gt; &gt; 1 bytes read in 20 ms (0 Bytes/s)
&gt; &gt; Found bootable drive on ide 0
&gt; &gt; 295973 bytes read in 153 ms (1.8 MiB/s)
&gt; &gt; CACHE: Misaligned operation at range [01000098,
&gt; &gt; 01030c04]
&gt; &gt; CACHE: Misaligned operation at range [01030c04,
&gt; &gt; 01031707]
&gt; &gt; CACHE: Misaligned operation at range [01031708,
&gt; &gt; 010330f0]
&gt; &gt; CACHE: Misaligned operation at range [010330f0,
&gt; &gt; 0103558b]
&gt; &gt; CACHE: Misaligned operation at range [01035590,
&gt; &gt; 01036c98]
&gt; &gt; CACHE: Misaligned operation at range [01036c98,
&gt; &gt; 01036cf4]
&gt; &gt; CACHE: Misaligned operation at range [01036cf4,
&gt; &gt; 01036d5c]
&gt; &gt; CACHE: Misaligned operation at range [01036d5c,
&gt; &gt; 01036e30]
&gt; &gt; CACHE: Misaligned operation at range [01036e30,
&gt; &gt; 01036e3c]
&gt; &gt; ## Starting application at 0x01000098 ...
&gt; &gt; Consoles: U-Boot console  
&gt; &gt; Script done on Sat Mar 30 07:22:01 2019
&gt; &gt;</pre>
&gt; <br />
&gt; Just wondered why Reset IDE is performed twice...<br />
&gt; also why do I get CACHE: Misaligned operation at<br />
&gt; range?<br />
<br />
It does not hurt to do it twice, providing there is a  long enough time period between the 2. But only once is necessary.<br />
<br />
In this case, the scandisk does it the 1st time, the bootcmd_uenv does it again.<br />
<br />
This was intentional, since users could choose to remove the bootcmd_uenv to make it boot faster, if uEnv.txt is not needed.<br />
<br />
<br />
&gt; <br />
&gt; If I want to set my boot priority to IDE, USB, MMC<br />
&gt; do I need to change <b>uenv_init_devices</b>?<br />
<br />
All you need is to set the <b>devices</b> env, don&#039;t need to change other envs.<br />
<pre class="bbcode">
setenv devices &#039;ide usb mmc&#039;
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 23 May 2019 04:58:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,85349#msg-85349</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,85349#msg-85349</link>
            <description><![CDATA[ bodhi,<br />
<br />
<br />
Just looking through some old logs....<br />
<br />
balanga Wrote:<br />
-------------------------------------------------------<br />
&gt; <pre class="bbcode">
&gt; Script started on Sat Mar 30 07:21:22 2019
&gt; Command: cu -l /dev/cuaU0 -s 115200
&gt; Connected
&gt; 
&gt; Hit any key to stop autoboot:  3 ??? 2 ??? 1 ??? 0
&gt; 
&gt; Initializing devices...
&gt; starting USB...
&gt; USB0:   USB EHCI 1.00
&gt; scanning bus 0 for devices... 1 USB Device(s)
&gt; found
&gt;        scanning usb for storage devices... 0
&gt; Storage Device(s) found
&gt; 
&gt; Reset IDE: Bus 0: OK Bus 1: not available  
&gt;   Device 0: Model: WDC WD3200AAJS-00L7A0  Firm:
&gt; 01.03E01 Ser#:  WD-WMAV2HZ97868
&gt;             Type: Hard Disk
&gt;             Supports 48-bit addressing
&gt;             Capacity: 305245.3 MB = 298.0 GB
&gt; (625142448 x 512)
&gt; Loading envs from usb 0...
&gt; ** Bad device usb 0 **
&gt; Loading envs from usb 1...
&gt; ** Bad device usb 1 **
&gt; Loading envs from ide 0...
&gt; 136 bytes read in 28 ms (3.9 KiB/s)
&gt; ... envs loaded
&gt; importing envs ...
&gt; running scan_disk ...
&gt; Scan device usb
&gt; device usb 0:1
&gt; ** Bad device usb 0 **
&gt; device usb 1:1
&gt; ** Bad device usb 1 **
&gt; Scan device ide
&gt; 
&gt; Reset IDE: Bus 0: OK Bus 1: not available  
&gt;   Device 0: Model: WDC WD3200AAJS-00L7A0  Firm:
&gt; 01.03E01 Ser#:  WD-WMAV2HZ97868
&gt;             Type: Hard Disk
&gt;             Supports 48-bit addressing
&gt;             Capacity: 305245.3 MB = 298.0 GB
&gt; (625142448 x 512)
&gt; device ide 0:1
&gt; 1 bytes read in 20 ms (0 Bytes/s)
&gt; Found bootable drive on ide 0
&gt; 295973 bytes read in 153 ms (1.8 MiB/s)
&gt; CACHE: Misaligned operation at range [01000098,
&gt; 01030c04]
&gt; CACHE: Misaligned operation at range [01030c04,
&gt; 01031707]
&gt; CACHE: Misaligned operation at range [01031708,
&gt; 010330f0]
&gt; CACHE: Misaligned operation at range [010330f0,
&gt; 0103558b]
&gt; CACHE: Misaligned operation at range [01035590,
&gt; 01036c98]
&gt; CACHE: Misaligned operation at range [01036c98,
&gt; 01036cf4]
&gt; CACHE: Misaligned operation at range [01036cf4,
&gt; 01036d5c]
&gt; CACHE: Misaligned operation at range [01036d5c,
&gt; 01036e30]
&gt; CACHE: Misaligned operation at range [01036e30,
&gt; 01036e3c]
&gt; ## Starting application at 0x01000098 ...
&gt; Consoles: U-Boot console  
&gt; Script done on Sat Mar 30 07:22:01 2019
&gt;</pre>
<br />
Just wondered why Reset IDE is performed twice... also why do I get CACHE: Misaligned operation at range?<br />
<br />
If I want to set my boot priority to IDE, USB, MMC do I need to change <b>uenv_init_devices</b>?]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 23 May 2019 04:18:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81959#msg-81959</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81959#msg-81959</link>
            <description><![CDATA[ Cool!]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 30 Mar 2019 02:50:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81954#msg-81954</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81954#msg-81954</link>
            <description><![CDATA[ bodhi,<br />
<br />
That works fine.<br />
<br />
Thanks for your efforts. <br />
<br />
I&#039;ll just include a log in case anyone needs to refer to the process:-<br />
<br />
<pre class="bbcode">
Script started on Sat Mar 30 07:21:22 2019
Command: cu -l /dev/cuaU0 -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
Hit any key to stop autoboot:  3 ??? 0 
GoFlexHome&gt; printenv
api_address=7b12860
arcNumber=3338
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt
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_openwrt=run set_bootargs_openwrt; 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=3
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,0
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb &quot;usb start&quot;;  setenv scan_ide &quot;ide reset&quot;;  setenv scan_mmc &quot;mmc rescan&quot;; for dev in $devices; do if test $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 $disknum: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
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_openwrt=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing devices...; setenv init_usb &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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 $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi
usb_ready_retry=15

Environment size: 3134/131068 bytes
GoFlexHome&gt; reset
resetting ...


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
Hit any key to stop autoboot:  3 ??? 2 ??? 1 ??? 0 
Initializing devices...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
Loading envs from usb 0...
** Bad device usb 0 **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from ide 0...
136 bytes read in 28 ms (3.9 KiB/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
device ide 0:1
1 bytes read in 20 ms (0 Bytes/s)
Found bootable drive on ide 0
295973 bytes read in 153 ms (1.8 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: 1


U-Boot env: loaderdev not set, will probe all devices.


Found U-Boot device: net


Booting from net0:


|?/?-?


\?|?/?-?\?|?/?-?\?can&#039;t load &#039;kernel&#039;





Type &#039;?&#039; for a list of commands, &#039;help&#039; for more detailed help.


loader&gt; ~
[EOT]

Command exit status: 0
Script done on Sat Mar 30 07:22:01 2019</pre>
<br />
Now back to getting the FreeBSD build sorted out :)...]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 30 Mar 2019 02:27:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81944#msg-81944</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81944#msg-81944</link>
            <description><![CDATA[ balanga,<br />
<br />
The uEnv.xt on the HDD /boot folder should have this content:<br />
 <br />
<pre class="bbcode">
bootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=ext2load ide 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}</pre>
<br />
Power up, interrupt serial console and execute:<br />
<br />
<pre class="bbcode">
setenv uenv_init_devices &#039;echo Initializing devices...; setenv init_usb &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; for devtype in $devices; do run init_$devtype; done&#039;
setenv uenv_read &#039;echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi&#039;
setenv uenv_load &#039;run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;&#039;
setenv uenv_read_disk</pre>
<br />
and then<br />
<br />
<pre class="bbcode">
boot</pre>
<br />
After verifying that it is working as intended, login to Debian and set them permanently:<br />
<br />
<pre class="bbcode">
fw_setenv uenv_init_devices &#039;echo Initializing devices...; setenv init_usb &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; for devtype in $devices; do run init_$devtype; done&#039;
fw_setenv uenv_read &#039;echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi&#039;
fw_setenv uenv_load &#039;run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;&#039;
fw_setenv uenv_read_disk
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 30 Mar 2019 01:18:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81924#msg-81924</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81924#msg-81924</link>
            <description><![CDATA[ Looks like there are a couple reasons.<br />
<br />
1. There was some changes in U-Boot hush parser between 2016.05 and 2017.07 u-boot, that I have been unaware of.<br />
2. There is a bug in 2017.07 u-boot regarding &quot;ide&quot; command.<br />
<br />
Number 1 is easy, I can fix the envs to get it work the way the u-boot 2017.07 expected. I should fix this problem regardless, since the envs were not coded defensively enough.<br />
<br />
For number 2, I am a a little bit uncertain, I have to do some tests to see what is the best approach to work around this.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Fri, 29 Mar 2019 02:35:34 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81919#msg-81919</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81919#msg-81919</link>
            <description><![CDATA[ balanga,<br />
<br />
Thanks but no needed! I can see where it possibly went wrong now.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 28 Mar 2019 20:29:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81914#msg-81914</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81914#msg-81914</link>
            <description><![CDATA[ I&#039;ll post it again if you like, but do you want me to include the section after   Starting kernel ... ?]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 28 Mar 2019 19:15:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81909#msg-81909</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81909#msg-81909</link>
            <description><![CDATA[ balanga,<br />
<br />
&gt; I did exactly as what you suggested but the<br />
&gt; outcome was the same so didn&#039;t see any sense in<br />
&gt; posting the same log as before<br />
<br />
That&#039;s not how we troubleshoot some problems. Ask and answer :) if there is no answer, I have no way to know what was the result. Even the answer is: &quot;no, it did not work and the result is the same&quot; would be helpful. <br />
<br />
&gt;  but I will post the output from the<br />
&gt; changes you suggested, although I don&#039;t know what<br />
&gt; you will glean from it.<br />
<br />
A lot info from the log with the changed envs (what the log <b>did not show</b> were what I wanted to see).<br />
<br />
I&#039;ll run some test in one of my Kirkwood boxes to see what I can tell.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 28 Mar 2019 18:48:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81854#msg-81854</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81854#msg-81854</link>
            <description><![CDATA[ bodhi,<br />
<br />
I did exactly as what you suggested but the outcome was the same so didn&#039;t see any sense in posting the same log as before and wanted to see if I could get uBoot to read uEnv.txt which I did by running the various functions in logical order separately, but I will post the output from the changes you suggested, although I don&#039;t know what you will glean from it.<br />
<br />
<pre class="bbcode">
Script started on Wed Mar 27 19:21:12 2019
Command: cu -l /dev/cuaU0 -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
Hit any key to stop autoboot:  3 ??? 2 ??? 0 
GoFlexHome&gt; setenv devices ide
GoFlexHome&gt; setenv bootdev ide
GoFlexHome&gt; setenv disks &#039;0 1 1? ?2 3 4 5 6 7 8 9&#039;
GoFlexHome&gt; printenv
api_address=7b12860
arcNumber=3338
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt
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_openwrt=run set_bootargs_openwrt; 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=3
bootdev=ide
console=console=ttyS0,115200
device=0:1
devices=ide
disks=0 1 2 3 4 5 6 7 8 9
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,0
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb &quot;usb start&quot;;  setenv scan_ide &quot;ide reset&quot;;  setenv scan_mmc &quot;mmc rescan&quot;; for dev in $devices; do if test $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 $disknum: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
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_openwrt=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
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 &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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: 3136/131068 bytes
GoFlexHome&gt; printenv disks
disks=0 1 2 3 4 5 6 7 8 9
GoFlexHome&gt; printenv bootdev
bootdev=ide
GoFlexHome&gt; printenv devices
devices=ide
GoFlexHome&gt; boot

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
device ide 0:1
1 bytes read in 20 ms (0 Bytes/s)
Found bootable drive on ide 0
<span style="color:#FF0000">## Error: &quot;bootcmd_bsd&quot; not defined</span>
loading uImage ...
4600064 bytes read in 1637 ms (2.7 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
** File not found /boot/dts/kirkwood-goflexhome.dtb **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.97-1-ARCH
   Created:      2017-11-11   4:51:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600000 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...</pre>
<br />
It continues trying to boot Linux and I can post that if you want.<br />
<br />
My previous posting was to show that I could get FreeBSD&#039;s loader loaded just setting<br />
<br />
<pre class="bbcode">
setenv devices ide</pre>
<br />
and running the different functions in logical order, thereby bypassing some of the conditions which determine if a function should run or not.]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 28 Mar 2019 04:28:38 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81849#msg-81849</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81849#msg-81849</link>
            <description><![CDATA[ balanga,<br />
<br />
I know some improvement is needed in SATA part of the default envs. <br />
<br />
That’s what I tried to find out in your particular system configuration. <br />
<br />
But you have a really bad habit of not doing what I asked you to do :) I can’t help you if you dont provide the info I ask for.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 27 Mar 2019 21:02:46 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81839#msg-81839</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81839#msg-81839</link>
            <description><![CDATA[ bodhi,<br />
<br />
I think there is a problem in the logic flow. Here is a log which ended up launching FreeBSD&#039;s loader:-<br />
<br />
<pre class="bbcode">
Script started on Thu Mar 28 00:41:00 2019
Command: cu -l /dev/cuaU0 -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
Hit any key to stop autoboot:  3 ??? 0 
<span style="color:#FF0000">GoFlexHome&gt; setenv devices ide
GoFlexHome&gt; run bootcmd_uenv</span>

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
<span style="color:#FF0000">GoFlexHome&gt; run uenv_load</span>

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
<span style="color:#FF0000">GoFlexHome&gt; run uenv_read_disk</span>

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
<span style="color:#FF0000">GoFlexHome&gt; run uenv_read</span>
loading envs from ide 0 ...
136 bytes read in 28 ms (3.9 KiB/s)
<span style="color:#FF0000">GoFlexHome&gt; run uenv_import</span>
importing envs ...
<span style="color:#FF0000">GoFlexHome&gt; printenv bootfile</span>
<span style="color:#0000CC">bootfile=ubldr</span>
<span style="color:#FF0000">GoFlexHome&gt; boot</span>

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
device ide 0:1
1 bytes read in 21 ms (0 Bytes/s)
Found bootable drive on ide 0
295973 bytes read in 153 ms (1.8 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

<span style="color:#FF0000">FreeBSD/arm U-Boot loader, Revision 1.2</span>

(Thu Nov 30 14:06:37 GMT 2017 root@Test)

DRAM: 128MB

Number of U-Boot devices: 1

U-Boot env: loaderdev not set, will probe all devices.

Found U-Boot device: net

Booting from net0:

can&#039;t load &#039;kernel&#039;

Type &#039;?&#039; for a list of commands, &#039;help&#039; for more detailed help.


loader&gt; reboot


Resetting...


resetting ...
[EOT]

Command exit status: 0
Script done on Thu Mar 28 00:43:24 2019
</pre>]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 27 Mar 2019 19:53:40 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81824#msg-81824</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81824#msg-81824</link>
            <description><![CDATA[ Change uEnv.xt to have this content (<b><span style="color:#FF0000">no more no less than these 4 lines</span>)</b><br />
<pre class="bbcode">
bootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=ext2load ide 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}</pre>
<br />
Power up interrupt serial console and<br />
<br />
<pre class="bbcode">
setenv devices ide
setenv bootdev ide
setenv disks &#039;0 1 2 3 4 5 6 7 8 9&#039;
boot
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 27 Mar 2019 13:36:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81799#msg-81799</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81799#msg-81799</link>
            <description><![CDATA[ bodhi,<br />
<br />
I don&#039;t think /boot/uEnv.txt is being read when booting from hard disk, irrespective of the contents. Here&#039;s is an edited boot log when booting up Debian from a USB stick, showing the contents of the hard disk:-<br />
<br />
<pre class="bbcode">
Debian GNU/Linux 9 debian ttyS0

debian login: root
Password:
Last login: Tue Mar 26 04:53:05 PDT 2019 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda         8:0    0 298.1G  0 disk
|-sda1      8:1    0  18.7G  0 part
`-sda2      8:2    0 279.5G  0 part
sdb         8:16   1   7.3G  0 disk
`-sdb1      8:17   1   7.3G  0 part /
mtdblock0  31:0    0     1M  0 disk
mtdblock1  31:1    0   255M  0 disk


root@debian:~# ls /mnt
sda1 ubifs

root@debian:~# mount /dev/sda1 /mnt/sda1
[  143.137642] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[  143.248127] EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
[  143.288027] EXT4-fs (sda1): recovery complete
[  143.317347] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)

root@debian:~# ls -al /mnt/sda1
total 463368
drwxr-xr-x 17 root root      4096 Aug 10  2018 .
drwxr-xr-x  4 root root      4096 Mar 24 00:10 ..
-rw-r--r--  1 root root 131072000 Aug 10  2018 .swapfile
-rw-r--r--  1 root root 339729650 May  1  2018 ArchLinuxARM-kirkwood-latest.tar.gz
lrwxrwxrwx  1 root root         7 Mar 11  2018 bin -&gt; usr/bin
drwxr-xr-x  2 root root      4096 Mar 26 04:59 boot
-rwxr-xr-x  1 root root   3127874 Sep  6  2014 bsdtar
drwxr-xr-x  2 root root      4096 May  1  2018 dev
drwxr-xr-x 39 root root      4096 Aug 12  2018 etc
drwxr-xr-x  3 root root      4096 May  1  2018 home
lrwxrwxrwx  1 root root         7 Mar 11  2018 lib -&gt; usr/lib
drwx------  2 root root     16384 May 12  2018 lost+found
drwxr-xr-x  4 root root      4096 Aug 12  2018 mnt
drwxr-xr-x  2 root root      4096 Mar 11  2018 opt
dr-xr-xr-x  2 root root      4096 May  1  2018 proc
drwxr-x---  8 root root      4096 Jun  9  2018 root
drwxr-xr-x  2 root root      4096 May  1  2018 run
lrwxrwxrwx  1 root root         7 Mar 11  2018 sbin -&gt; usr/bin
drwxr-xr-x  4 root root      4096 May  1  2018 srv
dr-xr-xr-x  2 root root      4096 May  1  2018 sys
drwxrwxrwt  2 root root      4096 May  1  2018 tmp
drwxr-xr-x  8 root root      4096 Aug 12  2018 usr
drwxr-xr-x 12 root root      4096 Aug 11  2018 var

root@debian:~# ls -al /mnt/sda1/boot
total 9960
drwxr-xr-x  2 root root    4096 Mar 26 04:59 .
drwxr-xr-x 17 root root    4096 Aug 10  2018 ..
-rw-r--r--  1 root root      14 Mar 26 04:58 blob
-rw-r--r--  1 root root 5553261 May  1  2018 initramfs-linux.img
-rwxr-xr-x  1 root root     150 Mar 26 04:56 uEnv.txt
-rw-r--r--  1 root root 4600064 Nov 10  2017 uImage

root@debian:~# cat /mnt/sda1/boot/uEnv.txt
bootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=ext2load ide 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}
printenv
boot

root@debian:~# ls -al /mnt/sda1/boot
total 9960
drwxr-xr-x  2 root root    4096 Mar 26 04:59 .
drwxr-xr-x 17 root root    4096 Aug 10  2018 ..
-rw-r--r--  1 root root      14 Mar 26 04:58 blob
-rw-r--r--  1 root root 5553261 May  1  2018 initramfs-linux.img
-rwxr-xr-x  1 root root     150 Mar 27 05:30 uEnv.txt
-rw-r--r--  1 root root 4600064 Nov 10  2017 uImage

root@debian:~# echo &#039;hello, bodhi&#039; &gt; /mnt/sda1/boot/blob
root@debian:~# cat /mnt/sda1/boot/blob
hello, bodhi
root@debian:~#</pre>
<br />
The log of the failed boot when booting up from hard disk is shown here:-<br />
<br />
<a href="https://forum.doozan.com/read.php?3,80444,81744#msg-81744"  rel="nofollow">https://forum.doozan.com/read.php?3,80444,81744#msg-81744</a>]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 27 Mar 2019 09:31:49 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81759#msg-81759</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81759#msg-81759</link>
            <description><![CDATA[ balanga,<br />
<br />
I could not read the log, please repost the log without all the control characters. <br />
<br />
And make sure the content of the uEnv.tx is exactly (no more no less):<br />
<br />
<pre class="bbcode">
bootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=ext2load ide 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 26 Mar 2019 16:43:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81754#msg-81754</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81754#msg-81754</link>
            <description><![CDATA[ I&#039;ve booted up Debian from USB and mounted the hard disk as you can see and shown some of the files on the first partition:-<br />
<br />
<pre class="bbcode">
Debian GNU/Linux 9 debian ttyS0

debian login: root

Password: 
Last login: Tue Mar 26 03:32:56 PDT 2019 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda         8:0    0 298.1G  0 disk 
|-sda1      8:1    0  18.7G  0 part 
`-sda2      8:2    0 279.5G  0 part 
sdb         8:16   1   7.3G  0 disk 
`-sdb1      8:17   1   7.3G  0 part /
mtdblock0  31:0    0     1M  0 disk 
mtdblock1  31:1    0   255M  0 disk 
root@debian:~# cfdisk /dev/sda
?)0?[1;24r?[m??[4l?[?7h?[39;49m?[?25l?[?1c?[39;49m?[m??[H?[J?[1;34H?[0;10;1m?Disk: /dev/sda?[2;14H?[m?Size: 298.1 GiB, 320072933376 bytes, 625142448 sectors?[3;24HLabel: dos, identifier: 0x00000000?[5;5H?[0;10;1m?Device       Boot         Start         End     Sectors    Size  Id Type?[K
?[6d?[0;10;7m?&gt;&gt;  /dev/sda1                    63    39086144    39086082   18.7G  83 Linux   ?[7;5H?[m?/dev/sda2?[7;28H39086145   625137344   586051200  279.5G  83 Linux
?[8d?[32m    Free space            625137664   625142447        4784    2.3M?[K?[21;6H?[39m?[m?[Bootable]  [ Delete ]  ?[0;10;7m?[  Quit  ]?[m?  [  Type  ]  [  Help  ]  [  Write ]?[22;6H[  Dump  ]?[24;23H?[0;10;1m?Quit program without writing changes?[22;16H?[m?
?[16d ?[0;10m?lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk?
?[17d ?[0;10m?x? Partition type: Linux (83)?[79G?[0;10m?x?
?[18d ?[0;10m?x?Filesystem UUID: 1cf5fde9-1d9e-4eac-85bb-61e0818b08b9?[79G?[0;10m?x?
?[19d ?[0;10m?x?     Filesystem: ext3?[79G?[0;10m?x?
?[20d ?[0;10m?mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj??[19;24H?[0;10m???[22;16H?[?25h?[?0c?[24;1H

?[24d
[   88.357363]  sda: sda1 sda2
root@debian:~# mout ? ?? ?nt /dev/sda1 /mnt/sda1
[  125.264606] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[  125.387596] EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
[  125.427534] EXT4-fs (sda1): recovery complete
[  125.456837] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
root@debian:~# cd /mnt/sda1
root@debian:/mnt/sda1# ls -al
total 463368
drwxr-xr-x 17 root root      4096 Aug 10  2018 ?[0m?[01;34m.?[0m
drwxr-xr-x  4 root root      4096 Mar 24 00:10 ?[01;34m..?[0m
-rw-r--r--  1 root root 131072000 Aug 10  2018 .swapfile
-rw-r--r--  1 root root 339729650 May  1  2018 ArchLinuxARM-kirkwood-latest.tar.gz
lrwxrwxrwx  1 root root         7 Mar 11  2018 ?[01;36mbin?[0m -&gt; usr/bin
drwxr-xr-x  2 root root      4096 Mar 26 03:35 ?[01;34mboot?[0m
-rwxr-xr-x  1 root root   3127874 Sep  6  2014 ?[01;32mbsdtar?[0m
drwxr-xr-x  2 root root      4096 May  1  2018 ?[01;34mdev?[0m
drwxr-xr-x 39 root root      4096 Aug 12  2018 ?[01;34metc?[0m
drwxr-xr-x  3 root root      4096 May  1  2018 ?[01;34mhome?[0m
lrwxrwxrwx  1 root root         7 Mar 11  2018 ?[01;36mlib?[0m -&gt; usr/lib
drwx------  2 root root     16384 May 12  2018 ?[01;34mlost+found?[0m
drwxr-xr-x  4 root root      4096 Aug 12  2018 ?[01;34mmnt?[0m
drwxr-xr-x  2 root root      4096 Mar 11  2018 ?[01;34mopt?[0m
dr-xr-xr-x  2 root root      4096 May  1  2018 ?[01;34mproc?[0m
drwxr-x---  8 root root      4096 Jun  9  2018 ?[01;34mroot?[0m
drwxr-xr-x  2 root root      4096 May  1  2018 ?[01;34mrun?[0m
lrwxrwxrwx  1 root root         7 Mar 11  2018 ?[01;36msbin?[0m -&gt; usr/bin
drwxr-xr-x  4 root root      4096 May  1  2018 ?[01;34msrv?[0m
dr-xr-xr-x  2 root root      4096 May  1  2018 ?[01;34msys?[0m
drwxrwxrwt  2 root root      4096 May  1  2018 ?[30;42mtmp?[0m
drwxr-xr-x  8 root root      4096 Aug 12  2018 ?[01;34musr?[0m
drwxr-xr-x 12 root root      4096 Aug 11  2018 ?[01;34mvar?[0m
root@debian:/mnt/sda1# ls -al /boot
total 36268
drwxr-xr-x  3 root root    4096 Feb 28 03:20 ?[0m?[01;34m.?[0m
drwxr-xr-x 21 root root    4096 Mar  6 21:11 ?[01;34m..?[0m
-rw-------  1 root root 2504031 Jul 16  2017 System.map-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root  153501 Jul 15  2017 config-4.12.1-kirkwood-tld-1
drwxr-xr-x  2 root root    4096 Jul 15  2017 ?[01;34mdts?[0m
-rw-r--r--  1 root root 7245632 Jul 23  2017 initrd.img-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 8435004 Jul 16  2017 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root      85 Feb 28 03:20 uEnv.txt
-rw-r--r--  1 root root 3821592 Jul 20  2017 uImage
-rw-r--r--  1 root root 7245696 Jul 23  2017 uInitrd
-rwxr-xr-x  1 root  998    3232 Feb 28 01:50 ?[01;32muboot.2016.05-tld-1.environment.scr?[0m
-rw-------  1 root root 3821528 Jul 16  2017 vmlinuz-4.12.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 3821528 Jul 15  2017 ?[01;32mzImage-4.12.1-kirkwood-tld-1?[0m
root@debian:/mnt/sda1# date
Tue Mar 26 04:55:06 PDT 2019
root@debian:/mnt/sda1# cd /mnt/sda1/boot
root@debian:/mnt/sda1/boot# cat uEnv.txt
bootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=ext2load ide 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}
printenv
boot
root@debian:/mnt/sda1/boot# vi uEnv.txt
?[1;24r?[?25h?[?8c?[?25h?[?0c?[27m?[24m?[m??[H?[J?[?25l?[?1c?[24;1H&quot;uEnv.txt&quot; 6 lines, 150 characters?[1;1Hbootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=ext2load ide 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}
printenv
boot



???[m?boo??????boo????[?25l?[?1c?[24;1H?[K?[24;1H:?[?25h?[?0cwq
?[?25l?[?1c&quot;uEnv.txt&quot; 6 lines, 150 characters written
?[?25h?[?0c

root@debian:/mnt/sda1/boot# vi uEnv.txt????????????[1@cat uEnv.txt????????????[5@d /mnt/sda1/boot?????????????????date?[K????ls -al /boot
total 36268
drwxr-xr-x  3 root root    4096 Feb 28 03:20 ?[0m?[01;34m.?[0m
drwxr-xr-x 21 root root    4096 Mar  6 21:11 ?[01;34m..?[0m
-rw-------  1 root root 2504031 Jul 16  2017 System.map-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root  153501 Jul 15  2017 config-4.12.1-kirkwood-tld-1
drwxr-xr-x  2 root root    4096 Jul 15  2017 ?[01;34mdts?[0m
-rw-r--r--  1 root root 7245632 Jul 23  2017 initrd.img-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 8435004 Jul 16  2017 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root      85 Feb 28 03:20 uEnv.txt
-rw-r--r--  1 root root 3821592 Jul 20  2017 uImage
-rw-r--r--  1 root root 7245696 Jul 23  2017 uInitrd
-rwxr-xr-x  1 root  998    3232 Feb 28 01:50 ?[01;32muboot.2016.05-tld-1.environment.scr?[0m
-rw-------  1 root root 3821528 Jul 16  2017 vmlinuz-4.12.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 3821528 Jul 15  2017 ?[01;32mzImage-4.12.1-kirkwood-tld-1?[0m
root@debian:/mnt/sda1/boot# touch blob
root@debian:/mnt/sda1/boot# touch blob??????????ls -al /boot
total 36268
drwxr-xr-x  3 root root    4096 Feb 28 03:20 ?[0m?[01;34m.?[0m
drwxr-xr-x 21 root root    4096 Mar  6 21:11 ?[01;34m..?[0m
-rw-------  1 root root 2504031 Jul 16  2017 System.map-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root  153501 Jul 15  2017 config-4.12.1-kirkwood-tld-1
drwxr-xr-x  2 root root    4096 Jul 15  2017 ?[01;34mdts?[0m
-rw-r--r--  1 root root 7245632 Jul 23  2017 initrd.img-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 8435004 Jul 16  2017 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root      85 Feb 28 03:20 uEnv.txt
-rw-r--r--  1 root root 3821592 Jul 20  2017 uImage
-rw-r--r--  1 root root 7245696 Jul 23  2017 uInitrd
-rwxr-xr-x  1 root  998    3232 Feb 28 01:50 ?[01;32muboot.2016.05-tld-1.environment.scr?[0m
-rw-------  1 root root 3821528 Jul 16  2017 vmlinuz-4.12.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 3821528 Jul 15  2017 ?[01;32mzImage-4.12.1-kirkwood-tld-1?[0m
root@debian:/mnt/sda1/boot# ls -al /boot?????????????[2Ptouch blob??????????ls -al /boot?????????????[2Ptouch blob? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???????pwd
/mnt/sda1/boot
root@debian:/mnt/sda1/boot# vi blob
[?0cwq
?[?25l?[?1c&quot;blob&quot; 2 lines, 14 characters written
?[?25h?[?0c

root@debian:/mnt/sda1/boot# vi blob????????[4Ppwd???ls -al /boot
total 36268
drwxr-xr-x  3 root root    4096 Feb 28 03:20 ?[0m?[01;34m.?[0m
drwxr-xr-x 21 root root    4096 Mar  6 21:11 ?[01;34m..?[0m
-rw-------  1 root root 2504031 Jul 16  2017 System.map-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root  153501 Jul 15  2017 config-4.12.1-kirkwood-tld-1
drwxr-xr-x  2 root root    4096 Jul 15  2017 ?[01;34mdts?[0m
-rw-r--r--  1 root root 7245632 Jul 23  2017 initrd.img-4.12.1-kirkwood-tld-1
-rw-r--r--  1 root root 8435004 Jul 16  2017 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root      85 Feb 28 03:20 uEnv.txt
-rw-r--r--  1 root root 3821592 Jul 20  2017 uImage
-rw-r--r--  1 root root 7245696 Jul 23  2017 uInitrd
-rwxr-xr-x  1 root  998    3232 Feb 28 01:50 ?[01;32muboot.2016.05-tld-1.environment.scr?[0m
-rw-------  1 root root 3821528 Jul 16  2017 vmlinuz-4.12.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 3821528 Jul 15  2017 ?[01;32mzImage-4.12.1-kirkwood-tld-1?[0m
root@debian:/mnt/sda1/boot# ls -al /boot?????????????[5Pvi blob
?[1;24r?[?25h?[?8c?[?25h?[?0c?[27m?[24m?[m??[H?[J?[?25l?[?1c?[24;1H&quot;blob&quot; 2 lines, 14 characters?[1;1Hhello, world


25h?[?0cq
?[?25l?[?1c?[?25h?[?0c?[24;1H?[K?[24;1Hroot@debian:/mnt/sda1/boot# ls
?[0m?[01;34m.?[0m  ?[01;34m..?[0m  blob  initramfs-linux.img  ?[01;32muEnv.txt?[0m  uImage
root@debian:/mnt/sda1/boot# ls??vi blob???????ls -al /boot? ?? ?? ?? ?? ?
total 9960
drwxr-xr-x  2 root root    4096 Mar 26 04:59 ?[0m?[01;34m.?[0m
drwxr-xr-x 17 root root    4096 Aug 10  2018 ?[01;34m..?[0m
-rw-r--r--  1 root root      14 Mar 26 04:58 blob
-rw-r--r--  1 root root 5553261 May  1  2018 initramfs-linux.img
-rwxr-xr-x  1 root root     150 Mar 26 04:56 ?[01;32muEnv.txt?[0m
-rw-r--r--  1 root root 4600064 Nov 10  2017 uImage
root@debian:/mnt/sda1/boot# ~
[EOT]

Command exit status: 0
Script done on Tue Mar 26 11:59:11 2019
</pre>]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 26 Mar 2019 07:05:51 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81749#msg-81749</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81749#msg-81749</link>
            <description><![CDATA[ <pre class="bbcode">
Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83</pre>
<br />
<br />
<br />
Make sure the  /boot/uEnv.txt file is on partition 1 of the HDD.<br />
<br />
IOW,  on partition 1, there must be a /boot folder and the uEnv.txt is in that folder.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 26 Mar 2019 06:36:25 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81744#msg-81744</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81744#msg-81744</link>
            <description><![CDATA[ Still not picking up /boot/uEnv.txt ...<br />
<br />
<br />
<pre class="bbcode">
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
Hit any key to stop autoboot:  3 ??? 0 
GoFlexHome&gt; setenv devices ide
GoFlexHome&gt; setenv bootdev ide
GoFlexHome&gt; printenv
api_address=7b12860
arcNumber=3338
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt
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_openwrt=run set_bootargs_openwrt; 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=3
bootdev=ide
console=console=ttyS0,115200
device=0:1
devices=ide
disks=0 1
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,0
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb &quot;usb start&quot;;  setenv scan_ide &quot;ide reset&quot;;  setenv scan_mmc &quot;mmc rescan&quot;; for dev in $devices; do if test $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 $disknum: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
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_openwrt=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
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 &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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: 3120/131068 bytes
GoFlexHome&gt; boot

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
device ide 0:1
1 bytes read in 21 ms (0 Bytes/s)
Found bootable drive on ide 0
## Error: &quot;bootcmd_bsd&quot; not defined
loading uImage ...
4600064 bytes read in 1638 ms (2.7 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
** File not found /boot/dts/kirkwood-goflexhome.dtb **
</pre>]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 26 Mar 2019 06:05:39 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81739#msg-81739</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81739#msg-81739</link>
            <description><![CDATA[ Change uEnv.xt to have this content:<br />
<pre class="bbcode">
bootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=ext2load ide 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}</pre>
<br />
Power up interrupt serial console and<br />
<br />
<pre class="bbcode">
setenv devices ide
setenv bootdev ide
boot
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 26 Mar 2019 05:15:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81734#msg-81734</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81734#msg-81734</link>
            <description><![CDATA[ bodhi Wrote:<br />
-------------------------------------------------------<br />
&gt; Just before running &#039;run bootcmd_uenv&#039;, try<br />
&gt; setting the devices to ide only:<br />
&gt; <br />
&gt; <pre class="bbcode">
&gt; setenv devices ide
&gt; run bootcmd_uenv
&gt;</pre>
<br />
<br />
<pre class="bbcode">
Script started on Tue Mar 26 07:25:04 2019
Command: cu -l /dev/cuaU0 -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
Hit any key to stop autoboot:  3 ??? 0 
GoFlexHome&gt; setenv devices ide
GoFlexHome&gt; printenv
api_address=7b12860
arcNumber=3338
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt
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_openwrt=run set_bootargs_openwrt; 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=3
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=ide
disks=0 1
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,0
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb &quot;usb start&quot;;  setenv scan_ide &quot;ide reset&quot;;  setenv scan_mmc &quot;mmc rescan&quot;; for dev in $devices; do if test $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 $disknum: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
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_openwrt=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
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 &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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: 3120/131068 bytes
GoFlexHome&gt; printenv devices
devices=ide
GoFlexHome&gt; run bootcmd_uenv

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
GoFlexHome&gt; run bootcmd? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?reset ide
reset - Perform RESET of the CPU

Usage:
reset 
GoFlexHome&gt; ls is? ?de 0:1 /boot
&lt;DIR&gt;       4096 .
&lt;DIR&gt;       4096 ..
         4600064 uImage
         5553261 initramfs-linux.img
             161 uEnv.txt
GoFlexHome&gt; run bootcmd

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
running scan_disk ...
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
device ide 0:1
1 bytes read in 20 ms (0 Bytes/s)
Found bootable drive on ide 0
## Error: &quot;bootcmd_bsd&quot; not defined
loading uImage ...</pre>
<br />
Now after booting Debian from USB showing the contents of /boot/uEnv.txt on the hard disk:<br />
<br />
<pre class="bbcode">
Debian GNU/Linux 9 debian ttyS0

debian login: root

Password: 
Last login: Mon Mar 25 18:28:40 PDT 2019 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda         8:0    0 298.1G  0 disk 
|-sda1      8:1    0  18.7G  0 part 
`-sda2      8:2    0 279.5G  0 part 
sdb         8:16   1   7.3G  0 disk 
`-sdb1      8:17   1   7.3G  0 part /
mtdblock0  31:0    0     1M  0 disk 
mtdblock1  31:1    0   255M  0 disk 
root@debian:~# ls -al /mnt
total 16
drwxr-xr-x  4 root root 4096 Mar 24 00:10 ?[0m?[01;34m.?[0m
drwxr-xr-x 21 root root 4096 Mar  6 21:11 ?[01;34m..?[0m
drwxr-xr-x  2 root root 4096 Mar 24 00:10 ?[01;34msda1?[0m
drwxr-xr-x  2 root root 4096 Mar 13 19:19 ?[01;34mubifs?[0m
root@debian:~# mount /dev/sda1 /mnt/sda1
[   97.536141] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   97.563509] EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
[   97.596706] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
root@debian:~# cat /mnt/sda1/boot/uEnv.txt
bootfile=ubldr
kernel_addr_r=0x01000000
loadaddr=0x02000000
bootcmd_bsd=usb start; ext2load usb 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}
printenv
boot
root@debian:~# ~
[EOT]

Command exit status: 0
Script done on Tue Mar 26 07:32:08 2019</pre>
<br />
I realise that bootcmd_bsd includes usb start which would be in error, but uBoot does not even seem to find bootcmd_bsd, so to me it looks like uEnv.txt has not been found/read.]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 26 Mar 2019 03:29:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81724#msg-81724</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81724#msg-81724</link>
            <description><![CDATA[ Just before running &#039;run bootcmd_uenv&#039;, try setting the devices to ide only:<br />
<br />
<pre class="bbcode">
setenv devices ide
run bootcmd_uenv
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 25 Mar 2019 23:27:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81714#msg-81714</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81714#msg-81714</link>
            <description><![CDATA[ I&#039;m trying to boot from a 350GB HD in the SATA slot on a GoFlex Home unit and I can get uboot to read /boot/uEnv.txt.<br />
<br />
Do I need to make any changes to my envars?<br />
<br />
<pre class="bbcode">
Script started on Tue Mar 26 01:30:10 2019
Command: cu -l /dev/cuaU0 -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
Hit any key to stop autoboot:  3 ??? 2 ??? 0 
GoFlexHome&gt; printenv
api_address=7b12860
arcNumber=3338
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt
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_openwrt=run set_bootargs_openwrt; 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=3
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,0
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb &quot;usb start&quot;;  setenv scan_ide &quot;ide reset&quot;;  setenv scan_mmc &quot;mmc rescan&quot;; for dev in $devices; do if test $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 $disknum: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
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_openwrt=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
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 &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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: 3124/131068 bytes
GoFlexHome&gt; ide start
ide - IDE sub-system

Usage:
ide reset - reset IDE controller
ide info  - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read  addr blk# cnt
ide write addr blk# cnt - read/write `cnt&#039; blocks starting at block `blk#&#039;
    to/from memory address `addr&#039;
GoFlexHome&gt; ide start? ?? ?? ?? ?? ?reset

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
GoFlexHome&gt; ls ide 0:1 /boot
&lt;DIR&gt;       4096 .
&lt;DIR&gt;       4096 ..
         4600064 uImage
         5553261 initramfs-linux.img
             161 uEnv.txt
GoFlexHome&gt; run bootcmd_uenv
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
## 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

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
GoFlexHome&gt; printenv
api_address=7b12860
arcNumber=3338
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt
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_openwrt=run set_bootargs_openwrt; 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=3
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.0.231
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
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,0
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb &quot;usb start&quot;;  setenv scan_ide &quot;ide reset&quot;;  setenv scan_mmc &quot;mmc rescan&quot;; for dev in $devices; do if test $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 $disknum: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
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_openwrt=setenv bootargs console=ttyS0,115200 $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
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 &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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=0
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: 3204/131068 bytes
GoFlexHome&gt; run bootmd
## Error: &quot;bootmd&quot; not defined
GoFlexHome&gt; run bootmd??cmd??

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
## 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

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	39086082  	00000000-01	83
  2	39086145  	586051200 	00000000-02	83
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: WDC WD3200AAJS-00L7A0  Firm: 01.03E01 Ser#:  WD-WMAV2HZ97868
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
device ide 0:1
1 bytes read in 21 ms (0 Bytes/s)
Found bootable drive on ide 0
## Error: &quot;bootcmd_bsd&quot; not defined
loading uImage ...
4600064 bytes read in 1638 ms (2.7 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
** File not found /boot/dts/kirkwood-goflexhome.dtb **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.97-1-ARCH
   Created:      2017-11-11   4:51:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600000 Bytes = 4.4 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] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.97-1-ARCH (builduser@leming) (gcc version 7.2.0 (GCC) ) #1 PREEMPT Sat Nov 11 04:51:38 UTC 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate GoFlex Home
</pre>]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 25 Mar 2019 20:42:34 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81374#msg-81374</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81374#msg-81374</link>
            <description><![CDATA[ balanga,<br />
<br />
I have answered this question before:<br />
<br />
<a href="https://forum.doozan.com/read.php?3,80444,80539#msg-80539"  rel="nofollow">https://forum.doozan.com/read.php?3,80444,80539#msg-80539</a><br />
<br />
Basically, you can not redefine bootcmd and bootcmd_uenv using uEnv.txt. So define a bootcmd_bsd that piggy back to the default bootcmd like I suggested above.<br />
<br />
Actually you could, but I purposely exclude them in the current default envs (to ensure that users mistakes in setting envs wont lock them out of the box).]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 20 Mar 2019 21:39:42 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,81359#msg-81359</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,81359#msg-81359</link>
            <description><![CDATA[ bodhi,<br />
<br />
I&#039;m really struggling to get uboot to take any notice of my /boot/uEnv.txt.<br />
<br />
If I enter the following at the following, (which is also the contents of my /boot/uEnv.txt)  at the stop autoboot prompt:-<br />
<br />
<pre class="bbcode">
setenv bootfile ubldr
setenv kernel_addr_r 0x01000000
setenv loadaddr 0x02000000
setenv bootcmd &#039;usb start; fatload usb 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}&#039;</pre>
<br />
FreeBSD actually starts booting:-<br />
<br />
<pre class="bbcode">
Script started on Wed Mar 20 22:01:06 2019
Command: cu -l /dev/cuaU0 -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
Hit any key to stop autoboot: 10 ??? 9 ??? 0 
GoFlexHome&gt; setenv bootfile ubldr
GoFlexHome&gt; setenv kernel_addr_r 0x01000000
GoFlexHome&gt; setenv fdtfile db88f6281.dtb
GoFlexHome&gt; setenv loadaddr 0x02000000
GoFlexHome&gt; setenv bootcmd &#039;usb start; fatload usb 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}&#039;
GoFlexHome&gt; boot
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
reading ubldr
295973 bytes read in 85 ms (3.3 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 not set, will probe all devices.
Found U-Boot device: disk
  Probing all disk devices...
  Checking unit=0 slice=&lt;auto&gt; partition=&lt;auto&gt;... good.
Booting from disk0s2:
|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?Warning: unable to open file /boot/loader.conf.local
\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?/boot/kernel/kernel data=0x443064+0x30f9c |?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?syms=[0x4+0x932d0|?/?-?\?+0x4+0x667c5|?/?-?\?]
fuse...|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?can&#039;t find &#039;fuse&#039;
failed!
umodem...\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?can&#039;t find &#039;umodem&#039;
failed!
u3g...\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?can&#039;t find &#039;u3g&#039;
failed!

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 4 seconds... Booting [/boot/kernel/kernel] in 3 seconds... Booting [/boot/kernel/kernel] in 2 seconds... Booting [/boot/kernel/kernel] in 1 second... Booting [/boot/kernel/kernel]...               
/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?Using DTB compiled into kernel.
|?/?-?\?Kernel entry at 0x1200100...
Kernel args: (null)
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE #0: Thu Nov 30 14:22:01 GMT 2017
    root@Test:/usr/obj/arm.arm/usr/src/sys/DB-88F6XXX arm
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
module mvs already present!
CPU: Feroceon 88FR131 rev 1 (**unknown 4** core)
  Little-endian DC enabled IC disabled WA disabled DC streaming enabled
  BTB disabled L2 enabled L2 prefetch enabled
  WB enabled LABT branch prediction disabled
  16KB/32B 4-way instruction cache
  16KB/32B 4-way write-back-locking-C data cache
real memory  = 134213632 (127 MB)
avail memory = 123895808 (118 MB)
SOC: Marvell 88F6281 rev A1, TClock 200MHz
  Instruction cache prefetch disabled, data cache prefetch disabled
  256KB 4-way set-associative write-through unified L2 cache
random: entropy device external interface
ofwbus0: &lt;Open Firmware Device Tree&gt;
simplebus0: &lt;Flattened device tree simple bus&gt; on ofwbus0
cpulist0: &lt;Open Firmware CPU Group&gt; on ofwbus0
cpu0: &lt;Open Firmware CPU&gt; on cpulist0
localbus0: &lt;Marvell device bus&gt; on ofwbus0
nand0: &lt;Marvell NAND controller&gt; mem 0xf9300000-0xf93fffff on localbus0
nandbus0: &lt;NAND bus&gt; on nand0
onand0: &lt;ONFI compliant NAND&gt; on nandbus0
onand0: No BBT found. Prescan chip...
#####################
ic0: &lt;Marvell Integrated Interrupt Controller&gt; mem 0x20200-0x2023b on simplebus0
timer0: &lt;Marvell CPU Timer&gt; mem 0x20300-0x2032f irq 1 on simplebus0
Event timer &quot;CPUTimer0&quot; frequency 200000000 Hz quality 1000
Timecounter &quot;CPUTimer1&quot; frequency 200000000 Hz quality 1000
gpio0: &lt;Marvell Integrated GPIO Controller&gt; mem 0x10100-0x1011f irq 35,36,37,38,39,40,41 on simplebus0
rtc0: &lt;Marvell Integrated RTC&gt; mem 0x10300-0x10307 on simplebus0
twsi0: &lt;Marvell Integrated I2C Bus Controller&gt; mem 0x11000-0x1101f irq 43 on simplebus0
iicbus0: &lt;Philips I2C bus&gt; on twsi0
iic0: &lt;I2C generic I/O&gt; on iicbus0
mge0: &lt;Marvell Gigabit Ethernet controller&gt; mem 0x72000-0x73fff irq 12,13,14,11,46 on simplebus0
mge0: PHY8 attached, phy_sc points to mge0
mge0: Ethernet address: 52:3b:20:9c:11:51
mge0: MII failed to find PHY
device_attach: mge0 attach returned 6
uart0: &lt;16550 or compatible&gt; mem 0x12000-0x1201f irq 33 on simplebus0
uart0: console (1056,n,8,1)
uart1: &lt;16550 or compatible&gt; mem 0x12100-0x1211f irq 34 on simplebus0
cesa0: &lt;Marvell Cryptographic Engine and Security Accelerator&gt; mem 0x30000-0x30fff,0x3d000-0x3dfff irq 22 on simplebus0
ehci0: &lt;Marvell Integrated USB 2.0 controller&gt; mem 0x50000-0x50fff irq 48,19 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
mvs0: &lt;Marvell 88F6281 SATA controller&gt; mem 0x80000-0x85fff irq 21 on simplebus0
mvs0: Gen-IIe, 2 3Gbps ports, Port Multiplier supported with FBS
mvsch0: &lt;Marvell SATA channel&gt; at channel 0 on mvs0
mvsch1: &lt;Marvell SATA channel&gt; at channel 1 on mvs0
pcib0: &lt;Marvell Integrated PCI/PCI-E Controller&gt; mem 0xf1040000-0xf1041fff irq 44 on ofwbus0
pci0: &lt;PCI bus&gt; on pcib0
cryptosoft0: &lt;software crypto&gt;
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0


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
Hit any key to stop autoboot: 10 ??? 0 
GoFlexHome&gt; setenv bootfile ubldr
GoFlexHome&gt; setenv kernel_addr_r 0x01000000
GoFlexHome&gt; setenv loadaddr 0x02000000
GoFlexHome&gt; setenv bootcmd &#039;usb start; fatload usb 0:1 ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}&#039;
GoFlexHome&gt; boot
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
reading ubldr
295973 bytes read in 85 ms (3.3 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 not set, will probe all devices.
Found U-Boot device: disk
  Probing all disk devices...
  Checking unit=0 slice=&lt;auto&gt; partition=&lt;auto&gt;... good.
Booting from disk0s2:
|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?Warning: unable to open file /boot/loader.conf.local
\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?/boot/kernel/kernel data=0x443064+0x30f9c |?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?syms=[0x4+0x932d0|?/?-?\?+0x4+0x667c5|?/?-?\?]
fuse...|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?can&#039;t find &#039;fuse&#039;
failed!
umodem...\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?can&#039;t find &#039;umodem&#039;
failed!
u3g...\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?/?-?\?|?can&#039;t find &#039;u3g&#039;
failed!

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 4 seconds... Booting [/boot/kernel/kernel] in 3 seconds... Booting [/boot/kernel/kernel] in 2 seconds... Booting [/boot/kernel/kernel] in 1 second... Booting [/boot/kernel/kernel]...               
Using DTB compiled into kernel.
/?-?\?|?/?Kernel entry at 0x1200100...
Kernel args: (null)
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE #0: Thu Nov 30 14:22:01 GMT 2017
    root@Test:/usr/obj/arm.arm/usr/src/sys/DB-88F6XXX arm
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
module mvs already present!
CPU: Feroceon 88FR131 rev 1 (**unknown 4** core)
  Little-endian DC enabled IC disabled WA disabled DC streaming enabled
  BTB disabled L2 enabled L2 prefetch enabled
  WB enabled LABT branch prediction disabled
  16KB/32B 4-way instruction cache
  16KB/32B 4-way write-back-locking-C data cache
real memory  = 134213632 (127 MB)
avail memory = 123895808 (118 MB)
SOC: Marvell 88F6281 rev A1, TClock 200MHz
  Instruction cache prefetch disabled, data cache prefetch disabled
  256KB 4-way set-associative write-through unified L2 cache
random: entropy device external interface
ofwbus0: &lt;Open Firmware Device Tree&gt;
simplebus0: &lt;Flattened device tree simple bus&gt; on ofwbus0
cpulist0: &lt;Open Firmware CPU Group&gt; on ofwbus0
cpu0: &lt;Open Firmware CPU&gt; on cpulist0
localbus0: &lt;Marvell device bus&gt; on ofwbus0
nand0: &lt;Marvell NAND controller&gt; mem 0xf9300000-0xf93fffff on localbus0
nandbus0: &lt;NAND bus&gt; on nand0
onand0: &lt;ONFI compliant NAND&gt; on nandbus0
onand0: No BBT found. Prescan chip...
#####################
ic0: &lt;Marvell Integrated Interrupt Controller&gt; mem 0x20200-0x2023b on simplebus0
timer0: &lt;Marvell CPU Timer&gt; mem 0x20300-0x2032f irq 1 on simplebus0
Event timer &quot;CPUTimer0&quot; frequency 200000000 Hz quality 1000
Timecounter &quot;CPUTimer1&quot; frequency 200000000 Hz quality 1000
gpio0: &lt;Marvell Integrated GPIO Controller&gt; mem 0x10100-0x1011f irq 35,36,37,38,39,40,41 on simplebus0
rtc0: &lt;Marvell Integrated RTC&gt; mem 0x10300-0x10307 on simplebus0
twsi0: &lt;Marvell Integrated I2C Bus Controller&gt; mem 0x11000-0x1101f irq 43 on simplebus0
iicbus0: &lt;Philips I2C bus&gt; on twsi0
iic0: &lt;I2C generic I/O&gt; on iicbus0
mge0: &lt;Marvell Gigabit Ethernet controller&gt; mem 0x72000-0x73fff irq 12,13,14,11,46 on simplebus0
mge0: PHY8 attached, phy_sc points to mge0
mge0: Ethernet address: 52:3b:20:9c:11:51
mge0: MII failed to find PHY
device_attach: mge0 attach returned 6
uart0: &lt;16550 or compatible&gt; mem 0x12000-0x1201f irq 33 on simplebus0
uart0: console (1056,n,8,1)
uart1: &lt;16550 or compatible&gt; mem 0x12100-0x1211f irq 34 on simplebus0
cesa0: &lt;Marvell Cryptographic Engine and Security Accelerator&gt; mem 0x30000-0x30fff,0x3d000-0x3dfff irq 22 on simplebus0
ehci0: &lt;Marvell Integrated USB 2.0 controller&gt; mem 0x50000-0x50fff irq 48,19 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
mvs0: &lt;Marvell 88F6281 SATA controller&gt; mem 0x80000-0x85fff irq 21 on simplebus0
mvs0: Gen-IIe, 2 3Gbps ports, Port Multiplier supported with FBS
mvsch0: &lt;Marvell SATA channel&gt; at channel 0 on mvs0
mvsch1: &lt;Marvell SATA channel&gt; at channel 1 on mvs0
pcib0: &lt;Marvell Integrated PCI/PCI-E Controller&gt; mem 0xf1040000-0xf1041fff irq 44 on ofwbus0
pci0: &lt;PCI bus&gt; on pcib0
cryptosoft0: &lt;software crypto&gt;
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
~
[EOT]

Command exit status: 0
Script done on Wed Mar 20 22:08:57 2019</pre>
<br />
What should I do to make uBoot set the above variables from the file?<br />
<br />
Is there any way to include &#039;printenv&#039; in uEnv.txt so that envars are displayed during the boot process?]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 20 Mar 2019 19:27:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,80619#msg-80619</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,80619#msg-80619</link>
            <description><![CDATA[ balanga,<br />
<br />
&gt; learn. I&#039;d like to hone these u-boot envs, since I<br />
&gt; don&#039;t understand a number and would rather remove<br />
&gt; them if not required.<br />
<br />
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.<br />
<br />
<pre class="bbcode">
fileaddr=810000
filesize=11f
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start</pre>
<br />
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.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 14 Mar 2019 05:11:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,80614#msg-80614</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,80614#msg-80614</link>
            <description><![CDATA[ bodhi,<br />
<br />
bodhi Wrote:<br />
-------------------------------------------------------<br />
&gt; <br />
&gt; Cool!<br />
&gt; <br />
&gt; At one point, you should post your u-boot envs<br />
&gt; setup that boot these 3 distros here. Probably in<br />
&gt; a new thread, so that it will help others who are <br />
&gt; looking for clues how to set it up such an<br />
&gt; environment.<br />
<br />
<br />
I hope to do that at some point. I&#039;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&#039;d like to hone these u-boot envs, since I don&#039;t understand a number and would rather remove them if not required.]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 14 Mar 2019 04:57:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,80574#msg-80574</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,80574#msg-80574</link>
            <description><![CDATA[ balanga,<br />
<br />
&gt; Many thanks for the help. I can now boot Debian,<br />
&gt; Arch Linux and OpenWrt on my GoFlex Home using the<br />
&gt; same uBoot.<br />
<br />
Cool!<br />
<br />
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.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 13 Mar 2019 20:57:55 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,80549#msg-80549</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,80549#msg-80549</link>
            <description><![CDATA[ bodhi,<br />
<br />
Many thanks for the help. I can now boot Debian, Arch Linux and OpenWrt on my GoFlex Home using the same uBoot.<br />
<br />
I&#039;ll spend a bit of time trying to get FreeBSD booting as well. <br />
<br />
Your help in flattening the learning curve of getting familiar with the system is much appreciated.]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 13 Mar 2019 19:28:43 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,80539#msg-80539</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,80539#msg-80539</link>
            <description><![CDATA[ Yes. They were read in OK.<br />
<br />
<pre class="bbcode">
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} &amp;&amp; bootelf ${loadaddr}</pre>
<br />
<pre class="bbcode">
bootfile=ubldr
....
bootcmd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}</pre>
<br />
And so on.<br />
<br />
However, that bootcmd in uEnv.txt will be ignored when you boot automatically. So you need something like this:<br />
<br />
<pre class="bbcode">
bootcmd_bsd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} &amp;&amp; bootelf ${loadaddr}</pre>
<br />
And set this permanently (similar to when you set up LEDE)<br />
<br />
<pre class="bbcode">
setenv bootcmd &#039;run bootcmd_uenv; run scan_disk; run bootcmd_bsd; run set_bootargs; run bootcmd_exec; run bootcmd_lede&#039;</pre>
<br />
So BSD, Debian, and LEDE will be tried in that order. Whichever command is successful (i.e. completed) first, will be the running system.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 13 Mar 2019 17:02:07 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,80444,80534#msg-80534</guid>
            <title>Re: /boot/uEnv.txt ignored</title>
            <link>https://forum.doozan.com/read.php?3,80444,80534#msg-80534</link>
            <description><![CDATA[ GoFlexHome&gt; run bootcmd_uenv<br />
<br />
<pre class="bbcode">
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 &#039;mmc&#039; - try &#039;help&#039;

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 &#039;mmc&#039; - try &#039;help&#039;
importing envs ...</pre>
<br />
GoFlexHome&gt; printenv<br />
<br />
<pre class="bbcode">
api_address=7b12860
arcNumber=3338
bootcmd=usb start;fdt addr 0x100;fatload ${fatdev} ${loadaddr} ${bootfile} &amp;&amp; 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 &quot;usb start&quot;;  setenv scan_ide &quot;ide reset&quot;;  setenv scan_mmc &quot;mmc rescan&quot;; 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 &quot;usb start&quot;;  setenv init_ide &quot;ide reset&quot;;  setenv init_mmc &quot;mmc rescan&quot;; 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</pre>
GoFlexHome&gt; reset<br />
<br />
One day I will have to sit down and study what all these envs do. At the moment it seems like black magic :)<br />
<br />
But I see from the above that  <br />
<br />
bootfile=ubldr<br />
<br />
has been set so that the envs have been amended.]]></description>
            <dc:creator>balanga</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 13 Mar 2019 14:57:37 -0500</pubDate>
        </item>
    </channel>
</rss>
