Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all 901 articles
Browse latest View live

Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 (no replies)

$
0
0
bobafetthotmail,

> I can do some of the grunt work for that. I'm
> writing from a pc with a xeon E3-1275 V2 + 16GB of
> ECC ram running Debian jessie (LMDE2 actually),
> and I'm already compiling a openwrt for my new
> tiny router.
>
> If you give me the .configure file for the OpenWrt
> SDK thing (or a list of packages/things you want
> to be included) I can build it for you.

Thanks for the offer to help! I'm not sure when I will be able to get back to this, but I'll keep that in mind.

Booting Arch with u-boot-2015.10-tld-1 (1 reply)

$
0
0
Hi. Need a little help here.
I`ve followed the guide to install the 2015.10 uBoot on Pogo E02 and prepared the USB stick with unpacking Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 on it. Looking at the netconsole output the kernel is found buy the Pogo box but it doesn`t get assigned an IP so no way of pocking inside and see what went wrong.

[admin@WL-Asus root]$ nc -l -u -p 6666                                        0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     51              7820901         00000000-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 232 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3165342 bytes read in 381 ms (7.9 MiB/s)
loading uInitrd ...
7179935 bytes read in 501 ms (13.7 MiB/s)
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
10446 bytes read in 1092 ms (8.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-02-22   0:38:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165278 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

Booting Arch with u-boot-2015.10-tld-1 (continued) (3 replies)

$
0
0
A little backstory: was initially running Linux-4.4.1-1-ARCH as per Jeff instructions, then decided to upgrade to new uBoot and found out the hard way that your uBoot somehow didn`t like ARCH. So in order to boot the box and flash moonman`s uBoot I`ve switched to Debian on USB stick.

So I should probably run something like
sudo chown root:root /
on some Linux machine, right?

Anyway this is what I have

PogoE02> printenv
printenv
arcNumber=3542
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=mw 0x800000 0 1; run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 0x1100000; fi; else if run load_dtb; then bootm 0x800000 - 0x1c00000; else bootm 0x800000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
ethact=egiga0
ethaddr=00:25:31:04:4B:E8
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=10.0.0.103
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x1c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x800000 /boot/uImage
machid=dd6
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=1
ncip=10.0.0.1
partition=nand0,2
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_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if 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 ext2load $dev $disknum:1 0x800000 /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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=10.0.0.1
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /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: 3118/131068 bytes

Using UART / nectat on Mac (OSX 10) (no replies)

$
0
0
I though we could share some knowledge among OS X users here, as some tf the tools use different syntax than its linux counterparts.

Netcat

works out of the box, for two-way communication run:

nc -lu 6666

You might have to turn off stealth mode for u-boot to be able to ping your pc (although I think it might be possible to disable this requirement in envs).

UART cable:

Works out of the box, use following command to open connection:

screen /dev/device_name 115200

device name is different for each cable, for me it is cu.SLAB_USBtoUART (CP210X cable)

Pogoplug V3 Pro boot with multiple drives attached (4 replies)

$
0
0
So far, I have been able to successfully modify my uBoot on my pogoplug pro and boot into Debian. However, I am looking to use Netatalk to set up a network drive for my Macbook Pro to use as a Time Machine backup, and I have run into a problem where uBoot fails when I have more than one device attached to the pogoplug during the initial boot process. I suppose I can simply unplug all other drives whenever I need to reboot, but that is less than convenient, and was hoping there might be a way to automate the search for the correct drive on boot.

I have seen this post (http://forum.doozan.com/read.php?3,19093) which looks like it might accomplish what I am looking for, but the sample boot variables and the uBoot version look to be for the Kirkwood builds, not OXNAS. Is there a way to use the USB scan script on the pogoplug pro, and will that solve the problem of not being able to boot when multiple drives are connected?

fw_printenv output below:
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd_stock=setenv autoload n; setenv bootargs_stock "root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M"; setenv poweroutage yes; setenv boot "bootm 60500000"; setenv bootcmd_stock_fw "run set_bootargs_stock; run boot_nand"; setenv boot bootm 60500000; setenv boot_nand "run load_nand boot || run load_nand2 boot"; setenv kernflmode s; setenv load_nand2 "nboot 60500000 0 800000"; setenv load_nand "nboot 60500000 0 200000"; setenv set_bootargs_stock "setenv bootargs $bootargs_stock"; setenv mainlinelinux no; run bootcmd_stock_fw
bootcmd=run dt_bootcmd_usb; run bootcmd_stock; reset
bootdelay=10
console=console=ttyS0,115200n8
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:01:02:0c
fdt_file=/boot/dts/ox820-pogoplug-pro.dtb
if_netconsole=ping $serverip
ipaddr=192.168.2.100
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
preboot=run if_netconsole start_netconsole
serverip=192.168.2.5
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

I have tried simply adding the env variables from section A1 post listed above using netconsole, but see either messages like:
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... READ_CAP ERROR
EHCI timed out on TD - token=0x3c008d80
or
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 1 **
** Bad device usb 1 **
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command

which makes me think that something about the script might need to change to work for the OXNAS boot process?

pogoplug login after uboot (17 replies)

$
0
0
Hi, all:

Am trying to install ALARM on a pogo v2. uboot installed fine but I had to close putty ssh connection, now cannot log back on. The previous password is no longer valid, but don't know what to use now. I opted to save pogo's original software during uboot installation -- do I unplug hard drive and start over or what?

Thanx -- flyyboyy

help: recovering old goflex home (4 replies)

$
0
0
Old goflex home, It was running stable with a SATA drive. I made a mistake of installing archlinux, something went wrong, bricked the device. Now I managed to install new u-boot but I cannot boot from Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 installed to a USB drive.

I did not have the default environment saved before. As I cannot boot in to the OS, I cannot do the step 8 of programming the default environment. I even tried

GoFlexHome> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
GoFlexHome> usb storage
  Device 0: Vendor: FLASH Rev: 1.00 Prod: Drive 3S_USB20
            Type: Removable Hard Disk
            Capacity: 1910.8 MB = 1.8 GB (3913375 x 512)
GoFlexHome> usbboot device 0

Loading from usb device 0, partition 1: Name: usbda1  Type: U-Boot
** Unknown image type
GoFlexHome>
on the u-boot console. It does not work. What could be wrong? How do I recover the device?

Here is the output of my serial console. It does show GoFlexHome prompt with new new uboot loaded. I can run uboot console commands but that is all.

GoFlexHome> reset
resetting ...


U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:53:00 -0800)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
GoFlexHome>

Here is my hand coded environment
GoFlexHome> printenv
arcNumber=3338
baudrate=115200
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
ethaddr=00:10:25:25:52:52
if_netconsole=ping 192.168.0.12
ipaddr=192.168.0.254
led_error=orange blinking
led_exit=green off
led_init=green blinking
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
net_dhcp_s=1
scan_disk=scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if 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 ext2load $dev $disknum:1 0x800000 /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.12
stderr=serial
stdin=serial
stdout=serial
usb_device=0:1
usb_init=usb start; setenv usb_root LABEL=rootfs
usb_rootfstype=ext3

Environment size: 1062/131068 bytes
GoFlexHome> 

HP T5325 Thin Client u-boot-2015.10-tld-2 for testing (no replies)

$
0
0
Here is the pre-released version for HP Thin Client T5325 U-Boot-2015.10

Please see the HP Thin Client Debian working thread for how to install/setup the latest Debian kernel/rootfs for this box. The working thread is where the discussion and testing for this box have been done. Please post any question about u-boot in the working thread (this u-boot thread will be reopened for questions/comments once it is officially released)

Download at Dropbox

uboot.2015.10-tld-2.t5325.bodhi.tar
md5
ac89dbd287c5a7e9d10410756dbadedf
sha256
ab5543a28db6c0c05815c5ab829a727d042b09cabe2cc7799b72aae40d86dcf5

There are 2 files in the tarball

uboot.2015.10-tld-2.t5325.mtd0.kwb
uboot.2014.07-tld-3.environment.64K.img


Please try UART booting with kwboot before flashing. Once it can be booted with kwboot, proceed to the instruction below.

./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-2.t5325.mtd0.kwb  -p

WARNING: please proceed at your own risk. If you can't test this u-boot with UART booting then be aware of the risk of bricking the device should something goes wrong during installation (power outage, typos,..). And once the new u-boot is installed, it will not be possible to boot stock OS.

Also, it's a good idea to backup your current stock mtds for future restoration, should you decide to go back to stock.

Installation

The installation must be done while Debian or stock OS running. However, if installation is from stock OS, the Debian rootfs should be on USB drive and already mounted in the box before starting installation. The steps below assume that the Debian rootfs is mounted at /media/sdb1

1. Save current u-boot envs. This should be saved to a folder on the Debian rootfs so that it can be referenced during installation, or during recovery if something went bad during installtion.

cd /media/sdb1
fw_printenv > current_envs.txt

2. Verify the Debian rootfs envs set up. Modify or add the fw_env.config file with the content below.

cat /media/sdb1/etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors

# HP T5325 Thin Client
/dev/mtd2 0x00000 0x10000 0x10000

3. Verify the MTD flash definition in the current running system. Note the mtd0 and mtd2 definition, they must be identical to your current mtd0 and mtd2. Refer to the working thread for instruction if your MTD flash definition is not as shown below.

dmesg | grep spi
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env) earlyprintk=serial
[    1.577638] m25p80 spi0.0: m25p80 (1024 Kbytes)
[    1.582271] 5 cmdlinepart partitions found on MTD device spi0.0
[    1.588221] Creating 5 MTD partitions on "spi0.0":
dmesg | grep 0x0 | grep '"'
[    1.593062] 0x000000000000-0x000000080000 : "uboot"
[    1.599248] 0x000000080000-0x0000000c0000 : "sdd_firmware"
[    1.606064] 0x0000000c0000-0x0000000d0000 : "uboot_env"
[    1.612592] 0x0000000d0000-0x0000000e0000 : "permanent_uboot_env"
[    1.619970] 0x0000000e0000-0x0000000f0000 : "hp_env"
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00040000 00010000 "sdd_firmware"
mtd2: 00010000 00010000 "uboot_env"
mtd3: 00010000 00010000 "permanent_uboot_env"
mtd4: 00010000 00010000 "hp_env"

4. Flash u-boot to mtd0.

If your running system does not have flashcp then use one in an ARM rootfs: /usr/sbin/flashcp. Or use the binary attached in this post.

flashcp -v uboot.2015.10-tld-2.t5325.mtd0.kwb /dev/mtd0
Expected output
Erasing blocks: 8/8 (100%)
Writing data: 512k/0k (100%)
Verifying data: 512k/0k (100%)

If there is any error, stop here and post at the working thread for help in recovery

5. Flash u-boot default envs to mtd2.

flashcp -v uboot.2014.07-tld-3.environment.64K.img  /dev/mtd2
Expected output
Erasing blocks: 1/1 (100%)
Writing data: 64k/0k (100%)
Verifying data: 64k/0k (100%)

If there is any error, stop here and post at the working thread for help in recovery

6. Reference your saved current_envs.txt in step 1 and restore box specific info in u-boot envs.

a. Modify envs (replace xx below with your box specific settings)

fw_setenv arcNumber '2846'
fw_setenv mtdparts 'mtdparts=spi0.0:512K(uboot),256K(sdd_firmware),64K(uboot_env),64K(permanent_uboot_env),64K(hp_env)'    
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
fw_setenv ipaddr 'xxx.xxx.x.xx'
fw_setenv serverip 'xxx.xxx.0.xxx'
fw_setenv devices 'usb ide'


b. Remove envs

fw_setenv dtb_file 
fw_setenv mtdids 
fw_setenv partition 
fw_setenv machid

Note:

The env dtb_file is removed with assumption that your rootfs has the T5325 DTB embedded inside uImage.

If booting with the latest Debian rootfs and using separate T5325 DTB (uImage is kept as original without DTB embedded inside it) then
fw_setenv dtb_file '/boot/dts/kirkwood-t5325.dtb'


7. Done.


Upon reboot, on serial/net console, u-boot banner should show

U-Boot 2015.10-tld-2 (Mar 09 2016 - 16:49:35 -0800)
HP Thin Client T5325

GoFlex Home Freeagent possible brick... (2 replies)

$
0
0
Hi Guys,

Hoping someone can help point me in the right direction...

Recenty tried to flash a new uboot to a GoFlex home device and since then it will not boot.
On power up the green light flashes for a couple of seconds, but then a constant orange.

Ive followed the instructions here: http://support.goflexhome.hipserv.com/en/reflash/index.html to put the device back to factory settings but its the same behavior as before and doesnt ever change to a white led to indicate its pushing the default firmware back to the device.

I have a Nokia CA-42 cable on order so i can connect via serial, but until then, is there anything else i can try to get the device to boot so i can get SSH access, or is there another method to flash back to factory?

Thanks all
Mark

Pogo E02 original MTDs needed (2 replies)

$
0
0
bodhi Wrote:
-------------------------------------------------------
> n64 Wrote:
> --------------------------------------------------
> -----
> > can this be used to restore the original
> pogoplug
> > firmware on an e02?
> > the mtdblock partitions were wiped and no
> backup
> > exists.
>
> No. It is an rescue system to be installed in the
> same NAND space as the orginial OS was.


I have this rescue system but want stock pogoplug back , can it be done ?

----
Moderator edit: original post from rescue system subforum.

some interesting uboot features you still don't have :) (1 reply)

$
0
0
While looking for a less crappy u-boot for my nexx wt3020 (mediatek mk7620n, not a kirkwood) I found a modded version with webinterface (for recovery purposes, it allows firmware flashing), dhcp server, and things needed for it to work. https://forum.openwrt.org/viewtopic.php?id=54717&p=2

the "original" version of the feature comes from pepe2k's github, that took it from Tp-link (and others) GPLed material https://github.com/pepe2k/u-boot_mod

I thought you would be interested in this, as you can turn your u-boot into a rescue system.

what is 'boota' in uboot env? (2 replies)

$
0
0
I'm looking at the envs in my uboot and here it is:

baudrate=115200                                                                 
bootargs=console=ttymxc0,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,M
bootcmd=boota mmc1                                                              
bootdelay=3                                                                     
ethact=FEC                                                                      
ethaddr=00:04:9f:03:ef:39                                                       
ethprime=FEC                                                                    
fastboot_dev=mmc1                                                               
fdt_high=0xffffffff                                                             
initrd_high=0xffffffff                                                          
loadaddr=0x12000000                                                             
splashpos=m,m


I don't understand what "bootcmd" values mean. Especially what is 'boota'? I've searched on google and it doesn't give me any meaningful results.

Another question that i have, is that once uboot executes bootcmd, does it automatically execute a kernel initiaing command with 'bootargs' by itself?

Help with NSA320S 2015.10 U-Boot installation (1 reply)

$
0
0
Hey Bodhi,

First off thanks for putting all of this together! It gives folks like me who are very new to the programming world a chance. I am having issues installing the uBoot on my NSA320s. The kernel and boot is the stock systems. I have enabled ffp and utilize putty to connect via SSH, logged in as root.

I have two possible issues so far. As this is stock, I followed your precursor to step 1 under flashing instructions and installed the mtd-utils and uboot-tools with no errors reported.

cd /tmp
wget http://download.doozan.com/uboot/nanddump
wget http://download.doozan.com/uboot/nandwrite
wget http://download.doozan.com/uboot/flash_erase
wget http://download.doozan.com/uboot/fw_printenv
wget http://download.doozan.com/uboot/fw_env.config
wget http://download.doozan.com/uboot/files/environment/uboot.environment


Without changing directories I ran cat /etc/fw_env.config with the following result.

Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
# NAND example
/dev/mtd1               0x0000          0x20000         0x20000                 4


I think this may be my first error. Do I need to edit the file to match your text? If so, how?

I figured there may have been an update of the file so I moved forward to the next step. When attempting to run

fw_printenv ethaddr

I got

-sh: fw_printenv: command not found

I am assuming I need to change the first file?

Finally I like to know what new commands do so I looked at the help files for nanddump and I don't see any --noecc listed. Is that something else that I need to install?

Thanks again,

Jeremy

NSA325 booting problem (1 reply)

$
0
0
Hi,

i've a problem, i'm thinking that i've bricked my NSA325.

For several months all works fine. Yesterday, having a lot of time i thought "time to update".
I updated debian whezzy to jessie and the kernel 4.4.0 to 4.5.0. After rebooting booting fails
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-label/hdd-root does not exist. Dropping to a shell!
modprobe: can't change directory to '4.4.0-kirkwood-tld-1': No such file or directory


I've seen the new uboot 2015-10 and tried to update my older uboot 2015 (don't know why i thought, that could solve my problem)
All seems to have gone fine but after reboot the box didn't work anymore.

The box starts, shows the blue button and the green led hdd2 turns on, and both stay turned on for about 20-30sec.
The they turn off for 1sec and return on. This continous....
I tried to connect via serial cabel but putty doesn't shows any message.
The only "change" is, that the serial converter's led for "data" turns off when the box has startet. In the 1sec the box "reboots" the data led turns on and off again.

Is there any chance to unbrick the box or to look for what happens?

Thank you in advance!

U-Boot flashing utilities (no replies)

$
0
0
While in stock OS, you can download the following binpack so that the normal tools for use in nand installation, fixing filesystem and create filesystem, will be available in the system (you can download it directly to the stock OS using wget, or download it to an USB stick on another Linux box).

Dowload at Dropbox
linux-tools-installation-bodhi.tar.gz
md5
ae8ba41ca3ab687b676ad42f26085c3c

This binpack contains these binaries (note that fw_printenv is the same binary as fw_setenv):
flash_erase, nandwrite, nanddump, fw_printenv, e2fsck, mke2fs, bzip2

You can execute them directly, or copy them to /usr/loclal/bin in stock OS for later emergency use.

install new uBoot on GoFlex Net (12 replies)

$
0
0
Hi

I just bought a brand new GoFlex net and would like to install uBoot, rescue system and Debian.

First step: uBoot. Ill follow to install uBoot.

SSH is enabled and working - good.

1) I can write in the /tmp folder - and downloaded and extracted there the bin tools - done.
2) I don't have a
/etc/fw_env.config
and I can't create it as it is Read-only.

stuck very early.

3) I can't execute
fw_printenv
either:
-bash-4.3# ./fw_printenv
./fw_printenv: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./fw_printenv)
-bash-4.3#

I somehow have the feeling, I am missing something important here.

What is going on here?

Rainer

uboot input problem (10 replies)

$
0
0
Hello,

while updating firmware i got messed up with electricity and since then I can not access my router..

i got cp2102 usb adapter and by connecting it to tx rx and gnd to the board I got following result

U-Boot 1.1.15P50_16R4F (May 21 2012 - 16:19:46)

U-Boot code: 40780000 -> 407948E8 BSS: -> 407AC000
System Memory Map:
0x00000000-0x01FFFFFF: SDRAM Bank 0
0x19C00000-0x1E7FFFFF: Memory Mapped IO Space-AHB
0x19C00000-0x19C1FFFF: Static/SDRAM Memory Controller
0x19C40000-0x19C5FFFF: Interrupt Controller
0x19C60000-0x19C7FFFF: AHB Arbiter
0x19C80000-0x19C9FFFF: MAC 0
0x19CA0000-0x19CBFFFF: MA1 0
0x1E700000-0x1E71FFFF: HDMA
0x1E800000-0x1EFFFFFF: Memory Mapped IO Space-APB
0x1E800000-0x1E81FFFF: Timer 0/1/2/3
0x1E840000-0x1E85FFFF: UART 0
0x1E880000-0x1E89FFFF: SPI
0x1E8A0000-0x1E8BFFFF: GPIO 0
0x1E8C0000-0x1E8DFFFF: WDT
0x1E8E0000-0x1E8FFFFF: SCU
0x1E940000-0x1E95FFFF: ACI0(PL040)
0x1E960000-0x1E97FFFF: ACI1(PL040)
0x1F000000-0x1F7FFFFF: Flash Bank 0
0x40000000-0x41FFFFFF: SDRAM Bank 1
RAM Configuration:
Bank #0: 40000000 32 MB
Board: 5VT1310-EVB-V1.4(CPU Speed 270 MHz)
SST-36VF3203 = 4MB; start at 0x1F000000;
Flash: 4 MB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
5VT1310-EVB#


i tried hitting key 1000 times but i can not type anything , can please anyone help me where i went wrong.. thank you

e02 not booting :( (5 replies)

$
0
0
hey guys
after the new uboot update my usb is no more recognized tried editing fstab and other things but still no luck.
sry for being so noob :(

here is my serial output with usb drive attached
U-Boot 2016.03-2 (Mar 15 2016 - 23:11:22 -0600) Arch Linux ARM
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... EHCI timed out on TD - token=0x80008c80
unable to get device descriptor (error=-1)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

USB device 0: 
    Device 0: Vendor: Generic  Rev: 1.14 Prod: External        
            Type: Hard Disk
            Capacity: 238474.1 MB = 232.8 GB (488395054 x 512)
... is now current device
usb found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4556392 bytes read in 289 ms (15 MiB/s)
loading /boot/dtbs/kirkwood-pogo_e02.dtb ...
** File not found /boot/dtbs/kirkwood-pogo_e02.dtb **
2682080 bytes read in 231 ms (11.1 MiB/s)
Booting uImage with initrd
## Booting kernel from Legacy Image at 00810000 ...
   Image Name:   Linux-4.4.6-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4556328 Bytes = 4.3 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.6-1-ARCH (builduser@leming) (gcc version 5.3.0 (GCC) ) #1 PREEMPT Fri Mar 25 23:54:20 MDT 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Pogoplug E02
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),-(rootfs) root=PARTUUID=00000001-01 rw rootwait
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 246956K/262144K available (6552K kernel code, 546K rwdata, 1868K rodata, 296K init, 725K bss, 15188K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0841548   (8422 kB)
[    0.000000]       .init : 0xc0842000 - 0xc088c000   ( 296 kB)
[    0.000000]       .data : 0xc088c000 - 0xc091485c   ( 547 kB)
[    0.000000]        .bss : 0xc091485c - 0xc09c9d58   ( 726 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:114
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    2.758124] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    2.758311] Console: colour dummy device 80x30
[    2.758342] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    2.848213] pid_max: default: 32768 minimum: 301
[    2.848307] Security Framework initialized
[    2.848384] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    2.848404] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    2.849143] Initializing cgroup subsys io
[    2.849177] Initializing cgroup subsys memory
[    2.849229] Initializing cgroup subsys devices
[    2.849256] Initializing cgroup subsys freezer
[    2.849278] Initializing cgroup subsys net_cls
[    2.849298] Initializing cgroup subsys perf_event
[    2.849322] Initializing cgroup subsys net_prio
[    2.849404] CPU: Testing write buffer coherency: ok
[    2.849868] Setting up static identity map for 0x81e0 - 0x8238
[    2.851811] devtmpfs: initialized
[    2.854217] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    2.854627] pinctrl core: initialized pinctrl subsystem
[    2.855399] NET: Registered protocol family 16
[    2.855895] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    2.878213] cpuidle: using governor ladder
[    2.908213] cpuidle: using governor menu
[    2.908393] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    2.908419] Feroceon L2: Enabling L2
[    2.908459] Feroceon L2: Cache support initialised.
[    2.949674] vgaarb: loaded
[    2.950000] SCSI subsystem initialized
[    2.950477] usbcore: registered new interface driver usbfs
[    2.950552] usbcore: registered new interface driver hub
[    2.950613] usbcore: registered new device driver usb
[    2.950779] pps_core: LinuxPPS API ver. 1 registered
[    2.950789] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.950822] PTP clock support registered
[    2.951889] clocksource: Switched to clocksource orion_clocksource
[    2.990708] FS-Cache: Loaded
[    3.003907] NET: Registered protocol family 2
[    3.004708] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    3.004748] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    3.004778] TCP: Hash tables configured (established 2048 bind 2048)
[    3.004853] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    3.004877] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    3.005074] NET: Registered protocol family 1
[    3.005405] RPC: Registered named UNIX socket transport module.
[    3.005418] RPC: Registered udp transport module.
[    3.005425] RPC: Registered tcp transport module.
[    3.005432] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.005733] Trying to unpack rootfs image as initramfs...
[    3.214762] Freeing initrd memory: 2620K (c1100000 - c138f000)
[    3.216576] futex hash table entries: 256 (order: -1, 3072 bytes)
[    3.229365] VFS: Disk quotas dquot_6.6.0
[    3.229634] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.231680] FS-Cache: Netfs 'nfs' registered for caching
[    3.232782] NFS: Registering the id_resolver key type
[    3.232836] Key type id_resolver registered
[    3.232845] Key type id_legacy registered
[    3.232941] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    3.234256] fuse init (API version 7.23)
[    3.236511] aufs 4.4-20160321
[    3.241710] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    3.241734] io scheduler noop registered
[    3.241748] io scheduler deadline registered
[    3.242078] io scheduler cfq registered
[    3.242353] io scheduler bfq registered (default)
[    3.242362] BFQ I/O-scheduler: v7r11
[    3.242565] mv_xor mv_xor.0: Marvell shared XOR driver
[    3.283201] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[    3.283449] mv_xor mv_xor.1: Marvell shared XOR driver
[    3.323150] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[    3.328764] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    3.329881] console [ttyS0] disabled
[    3.349996] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    3.914323] console [ttyS0] enabled
[    3.933839] brd: module loaded
[    3.944597] loop: module loaded
[    3.948822] nand: Could not find valid ONFI parameter page; aborting
[    3.955356] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    3.961742] nand: Hynix NAND 128MiB 3,3V 8-bit
[    3.966231] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    3.973863] Scanning device for bad blocks
[    3.989922] Bad eraseblock 157 at 0x0000013a0000
[    3.999074] Bad eraseblock 217 at 0x000001b20000
[    4.064813] 2 cmdlinepart partitions found on MTD device orion_nand
[    4.071109] Creating 2 MTD partitions on "orion_nand":
[    4.076293] 0x000000000000-0x000000100000 : "u-boot"
[    4.081761] 0x000000100000-0x000008000000 : "rootfs"
[    4.100372] libphy: orion_mdio_bus: probed
[    4.104669] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.182889] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:46:23
[    5.191772] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.198360] ehci-pci: EHCI PCI platform driver
[    5.202911] ehci-orion: EHCI orion driver
[    5.207015] orion-ehci orion-ehci.0: EHCI Host Controller
[    5.212491] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    5.220238] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    5.241917] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    5.248850] hub 1-0:1.0: USB hub found
[    5.252710] hub 1-0:1.0: 1 port detected
[    5.257337] usbcore: registered new interface driver uas
[    5.262858] usbcore: registered new interface driver usb-storage
[    5.268943] usbcore: registered new interface driver ums-alauda
[    5.274988] usbcore: registered new interface driver ums-cypress
[    5.281069] usbcore: registered new interface driver ums-datafab
[    5.287180] usbcore: registered new interface driver ums_eneub6250
[    5.293470] usbcore: registered new interface driver ums-freecom
[    5.299557] usbcore: registered new interface driver ums-isd200
[    5.305576] usbcore: registered new interface driver ums-jumpshot
[    5.311745] usbcore: registered new interface driver ums-karma
[    5.317680] usbcore: registered new interface driver ums-onetouch
[    5.323892] usbcore: registered new interface driver ums-realtek
[    5.329980] usbcore: registered new interface driver ums-sddr09
[    5.336001] usbcore: registered new interface driver ums-sddr55
[    5.342017] usbcore: registered new interface driver ums-usbat
[    5.348324] mousedev: PS/2 mouse device common for all mice
[    5.571918] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    5.724505] hub 1-1:1.0: USB hub found
[    5.728622] hub 1-1:1.0: 4 ports detected
[    6.011912] usb 1-1.2: new full-speed USB device number 3 using orion-ehci
[    6.091909] usb 1-1.2: device descriptor read/64, error -32
[    6.281908] usb 1-1.2: device descriptor read/64, error -32
[    6.361909] rtc-mv rtc-mv: internal RTC not ticking
[    6.366951] i2c /dev entries driver
[    6.371059] sdhci: Secure Digital Host Controller Interface driver
[    6.377296] sdhci: Copyright(c) Pierre Ossman
[    6.381739] sdhci-pltfm: SDHCI platform and OF driver helper
[    6.387979] ledtrig-cpu: registered to indicate activity on CPUs
[    6.394232] usbcore: registered new interface driver r8712u
[    6.400153] gre: GRE over IPv4 demultiplexor driver
[    6.405168] NET: Registered protocol family 17
[    6.409762] Key type dns_resolver registered
[    6.415128] registered taskstats version 1
[    6.440383] Key type encrypted registered
[    6.445121] console [netcon0] enabled
[    6.448818] netconsole: network logging started
[    6.453647] hctosys: unable to open rtc device (rtc0)
[    6.460635] Freeing unused kernel memory: 296K (c0842000 - c088c000)
[    6.481992] usb 1-1.2: new full-speed USB device number 4 using orion-ehci
:: running early hook [udev]
[    6.526759] random: systemd-tmpfile urandom read with 8 bits of entropy available
starting version 229
:: running hook [udev]
:: Triggering uevents...
[    6.571994] usb 1-1.2: device descriptor read/64, error -32
[    6.761981] usb 1-1.2: device descriptor read/64, error -32
[    6.952011] usb 1-1.2: new full-speed USB device number 5 using orion-ehci
[    7.401927] usb 1-1.2: device not accepting address 5, error -32
[    7.481913] usb 1-1.2: new full-speed USB device number 6 using orion-ehci
[    7.901911] usb 1-1.2: device not accepting address 6, error -32
[    7.908254] usb 1-1-port2: unable to enumerate USB device
[    7.991911] usb 1-1.3: new high-speed USB device number 7 using orion-ehci
[    8.105714] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.112415] scsi host0: usb-storage 1-1.3:1.0
Waiting 10 seconds for device /dev/disk/by-partuuid/00000001-01 ...
[    9.112967] scsi 0:0:0:0: Direct-Access     Generic  External         1.14 PQ: 0 ANSI: 4
[    9.125556] sd 0:0:0:0: [sda] 488395054 512-byte logical blocks: (250 GB/233 GiB)
[    9.133637] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    9.147057] sd 0:0:0:0: [sda] Write Protect is off
[    9.168798] sd 0:0:0:0: [sda] No Caching mode page found
[    9.175476] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.212123]  sda: sda1
[    9.220173] sd 0:0:0:0: [sda] Attached SCSI disk
ERROR: device 'PARTUUID=00000001-01' not found. Skipping fsck.
ERROR: Unable to find root device 'PARTUUID=00000001-01'.
You are being dropped to a recovery shell
    Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
[rootfs ]# [  101.103992] random: nonblocking pool is initialized

Dockstar Updated uBoot 2015.10 issue (1 reply)

$
0
0
Hi bodhi,

I have updated to 2015.10 and seems I can not boot into my USB debian anymore.
It should be the env because I saw your env is much cleaner. I did all necessary changes after flash your env though.

below is the boot record
U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:56:21 -0800)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB (ECC not enabled)
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:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15122944        000e2f0c-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 231 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3165294 bytes read in 448 ms (6.7 MiB/s)
loading uInitrd ...
7179935 bytes read in 645 ms (10.6 MiB/s)
loading DTB /boot/dts/kirkwood-dockstar.dtb ...
10398 bytes read in 280 ms (36.1 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-03-31   3:12:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165230 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 07440000, end 07b18e5f ... OK
   Loading Device Tree to 0743a000, end 0743f89d ... OK

Starting kernel ...

Uncompressing Linux... done, booting the 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.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Seagate FreeAgent Dockstar
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 120644K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 10428K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008272] Console: colour dummy device 80x30
[    0.012846] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100931] pid_max: default: 32768 minimum: 301
[    0.105754] Security Framework initialized
[    0.110070] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116815] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124816] Initializing cgroup subsys io
[    0.129002] Initializing cgroup subsys devices
[    0.133573] Initializing cgroup subsys freezer
[    0.138189] Initializing cgroup subsys net_cls
[    0.142823] CPU: Testing write buffer coherency: ok
[    0.148333] Setting up static identity map for 0x8200 - 0x8258
[    0.154569] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.163642] devtmpfs: initialized
[    0.171687] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.182171] prandom: seed boundary self test passed
[    0.190982] prandom: 100 self tests passed
[    0.195206] pinctrl core: initialized pinctrl subsystem
[    0.201982] NET: Registered protocol family 16
[    0.206974] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238052] cpuidle: using governor ladder
[    0.268051] cpuidle: using governor menu
[    0.272485] Feroceon L2: Enabling L2
[    0.276195] Feroceon L2: Cache support initialised.
[    0.281601] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.297075] No ATAGs?
[    0.329556] vgaarb: loaded
[    0.332991] usbcore: registered new interface driver usbfs
[    0.338723] usbcore: registered new interface driver hub
[    0.344219] usbcore: registered new device driver usb
[    0.350494] clocksource: Switched to clocksource orion_clocksource
[    0.412587] NET: Registered protocol family 2
[    0.417862] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.425092] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.431601] TCP: Hash tables configured (established 1024 bind 1024)
[    0.438135] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.444116] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.450718] NET: Registered protocol family 1
[    0.455535] RPC: Registered named UNIX socket transport module.
[    0.461623] RPC: Registered udp transport module.
[    0.466435] RPC: Registered tcp transport module.
[    0.471260] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.478195] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.485921] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.492265] audit: initializing netlink subsys (disabled)
[    0.497811] audit: type=2000 audit(0.480:1): initialized
[    0.503652] Initialise system trusted keyring
[    0.508452] zbud: loaded
[    0.511410] VFS: Disk quotas dquot_6.6.0
[    0.515485] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.523166] NFS: Registering the id_resolver key type
[    0.528356] Key type id_resolver registered
[    0.532696] Key type id_legacy registered
[    0.536826] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.543671] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.550359] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.558067] Key type big_key registered
[    0.573417] Key type asymmetric registered
[    0.577633] Asymmetric key parser 'x509' registered
[    0.582795] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.590323] io scheduler noop registered
[    0.594535] io scheduler deadline registered
[    0.598968] io scheduler cfq registered (default)
[    0.605175] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.613383] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[    0.620820] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[    0.628349] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.671188] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.678836] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.721188] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.729098] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.737024] console [ttyS0] disabled
[    0.740820] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.749944] console [ttyS0] enabled
[    0.749944] console [ttyS0] enabled
[    0.757081] bootconsole [earlycon0] disabled
[    0.757081] bootconsole [earlycon0] disabled
[    0.767183] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.773608] nand: Micron MT29F2G08AAD
[    0.777290] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.784920] Scanning device for bad blocks
[    0.948609] libphy: Fixed MDIO Bus: probed
[    0.953140] libphy: orion_mdio_bus: probed
[    0.957984] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.041125] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:1a:3d:0c
[    2.050011] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.056696] ehci-pci: EHCI PCI platform driver
[    2.061260] ehci-orion: EHCI orion driver
[    2.065470] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.071045] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.078905] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.100527] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.106808] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.113659] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.120940] usb usb1: Product: EHCI Host Controller
[    2.125838] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    2.132501] usb usb1: SerialNumber: f1050000.ehci
[    2.137956] hub 1-0:1.0: USB hub found
[    2.141813] hub 1-0:1.0: 1 port detected
[    2.146731] mousedev: PS/2 mouse device common for all mice
[    2.460526] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.612162] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.618915] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.626122] usb 1-1: Product: USB2.0 Hub
[    2.631014] hub 1-1:1.0: USB hub found
[    2.635162] hub 1-1:1.0: 4 ports detected
[    2.920520] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    3.034412] usb 1-1.3: New USB device found, idVendor=13fe, idProduct=4100
[    3.041352] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.048714] usb 1-1.3: Product: USB DISK 2.0
[    3.053019] usb 1-1.3: Manufacturer:
[    3.057396] usb 1-1.3: SerialNumber: 070239F129000800
[    3.160522] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.166167] i2c /dev entries driver
[    3.170999] hidraw: raw HID events driver (C) Jiri Kosina
[    3.176834] drop_monitor: Initializing network drop monitor service
[    3.183427] NET: Registered protocol family 17
[    3.188169] Key type dns_resolver registered
[    3.193360] registered taskstats version 1
[    3.197525] Loading compiled-in X.509 certificates
[    3.202434] zswap: loaded using pool lzo/zbud
[    3.207913] Key type encrypted registered
[    3.212509] hctosys: unable to open rtc device (rtc0)
[    3.219048] Waiting 10 sec before mounting root device...
[   13.230760] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   13.238107] Please append a correct "root=" boot option; here are the available partitions:
[   13.246556] 1f00          262144 mtdblock0  (driver?)
[   13.251697] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   13.259998] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[   13.266986] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   13.273313] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[   13.281097] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[   13.288013] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[   13.295535] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[   13.303409] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[   13.311457] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[   13.320375] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[   13.328507] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[   13.336117] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   80.220520] random: nonblocking pool is initialized

and env

arcNumber=2998
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=mw 0x800000 0 1; run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 0x1100000; fi; else if run load_dtb; then bootm 0x800000 - 0x1c00000; else bootm 0x800000; fi; fi
bootcmd_pogo=run bootcmd_rescue
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-dockstar.dtb
ethact=egiga0
ethaddr=00:10:75:1A:3D:0C
if_netconsole=ping $serverip
ipaddr=192.168.2.108
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x1c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x800000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
rescue_installed=1
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if 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 ext2load $dev $disknum:1 0x800000 /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.2.129
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $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_import=echo importing envs ...; env import -t 0x810000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /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: 3066/131068 bytes

Compiling uImage, .config explanations (no replies)

$
0
0
Hi,

I have a WD My Cloud EX2 (NAS) which came with a dirty bloated firmware. I don't want that, so I managed to install a clean Debian firmware (meant for another board...) on the device but there is one problem: the kernel written on the NAND (uImage) is linux 3.2, but my Debian distribution only proposes 3.16 kernel, therefore I cannot install some software like iscsi-target-dkms...

My idea was to download u-boot sources and build a 3.16 uImage for my board. But I can't get a correct configuration! If I compile the downloaded source right away, it works, but as soon as I change the slightest setting through make menuconfig, the compilation aborts very soon.
I get things like that :

In file included from ./include/common.h:18:0:
include/config.h:5:22: fatal error: configs/.h: No such file or directory
#include <configs/.h>
^
compilation terminated.
scripts/Makefile.autoconf:75: recipe for target 'include/autoconf.mk' failed
make[1]: *** [include/autoconf.mk] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.

Which I don't understand.
I have also tried to copy the config-3.16.0-4-armpp file found in /boot on my device to .config in my toolchain, but if I run make, then it drives me through the oldconfig like if there was no file...

I have also seen people doing things like make ARCH=arm CROSS_COMPILE=?????
But no one ever explains how they chose those settings, whatever I try, the Makefiles can't find some related file...

I am quite lost and can't find any general documentation not focused on any particular device...

Do you have any guide-lines, clarifications, suggestions, anything that could help me?


Sincerely,
Vincent

Edit :

Some informations about the device:

Device : WD My Cloud EX2
SoC : Marvell Armada 370
Board : RD 88F6710
Family : EBU


I found those on this page : https://www.kernel.org/doc/readme/Documentation-arm-Marvell-README
as well as in the datasheet linked in the corresponding section.

The toolchain I try to use :
http://git.denx.de/u-boot-marvell.git/
Viewing all 901 articles
Browse latest View live