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

Help with Docstar 2017.07 U-Boot Kirkwood installation (2 replies)

$
0
0
Howdy,
I run Linux and have a couple of D-Link, DNS323 and DNS320, NAS on the Lan, running Alt-F firmware. Recently, I picked up a STDSA10G-RK Dockstar in an unopened box and was able to disable the phone-home pogoplug firmware update, thanks to info hereabouts: http://www.rudiswiki.de/wiki/DockStarOverview It's been a bit challenging finding the best path forward, using google, the details are fuzzy, but approximately:

  • Followed Jeff Doozan's instructions to change uBoot, here: http://projects.doozan.com/uboot/
  • Installed Wheezy on a USB portable flash storage according to instructions at rudiswiki/here, after running down the rootfs, finally, here: NSA320quickstart.tar.gz
    I can't find the page that linked that tarball, atm. Using Old Debian Versions In Your sources.list showed me how to alter sources.list so I could install a rescue uBoot, the next step.
  •   rescue:~# cat /etc/rescue.version  20110217
    Now, I've got to here.

I've got an adapter like is shown in rudiswiki, Dockstar_USB_adapter and my plan is to run Debian from this according to the howtos around here and serve/store files with NFS on USB-attached enclosures to the LAN.

I'm thinking I need to have Linux Kernel 4.17.2 Kirkwood package and Debian rootfs on my portable flash and, likely, this 2017.07 U-Boot Kirkwood on the dockstar nand.

In the case of flashing this uBoot, I've got a couple of questions.

rescue:~# dmesg | grep -i 'bad'
[    0.676623] Scanning device for bad blocks
[    0.717547] Bad eraseblock 992 at 0x000007c00000
[    0.757542] Bad eraseblock 1946 at 0x00000f340000
[    0.913360] UBI: number of bad PEBs:         0
[    0.945511] UBI: number of PEBs reserved for bad PEB handling: 2
rescue:~#

There was a warning not to flash if a bad block was found in an area the flash writes. This looks to my untrained eye to be higher in the memory than would be a concern but I would like some reality on that.

Quote

2. Make sure ethaddr is set in uBoot env. It must be set before rebooting the system. However, if you plan to flash the default envs image in step 8 (Flashing default u-boot envs image), then no need to worry about it now. It can be set after you've booted in to Linux. The MAC address will be set to a valid randomly generated local address.


As is, I've got ethaddr set to the MAC address of the dockstar and use it for a static dhcp address in my router so I know where to go for ssh. I'd like to keep it that way, don't know if flashing default envs will give me a problem, don't know if I need to do that.

rescue:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0         0xc0000       0x20000   0x20000
rescue:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 0db00000 00020000 "data"
rescue:~# fw_printenv 
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:10:RE:DA:CT:ED  #don't know if I need to hide this but, in case
serverip=192.168.1.101
ipaddr=192.168.1.166
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
arcNumber=2998
rescue_installed=1
rescue:~#

I did set up netconsole but don't know how to use it. Hopefully, ssh will always be there.

WRT Linux Kernel 4.17.2 Kirkwood package and Debian rootfs, I'd like to keep my key with NSA320 updated Wheezy in case I get other dockstar(s) to do this. I suppose I could clone to another drive with gparted and update to this package or install to a new medium, optionally having re-flashed uBoot and would like some pointers on the way to go.

Thanks.
Rolf

Pogoplug Pro Boot issues, maybe bricked? (4 replies)

$
0
0
tried installing Debian overstock software and it was getting stuck during boot at some point.
Redid the rootfs usb stick and now all I get is some gibberish with Reset IDE SATA PHY not ready.

It also would not stop the boot if I press any key during the 10 to 0 countdown at the beginning of the process.

I've attached a .jpg of the putty serial connection messages.

Also, can someone tell me how to select all those messages in Putty as text? It would probably be much easier to post than making a screen shot and than attaching jpegs.

Help installing 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) (3 replies)

$
0
0
Sorry to keep bothering , but when i run :
/tmp # ./fw_printenv > current_envs.txt
Cannot read bad block mark: Invalid argument
i must be doing something wrong , but i have no idea.

any clues?
best regards
Martin

Cant find PogoPlug pro on network. Cant ping or ssh to it. (no replies)

$
0
0
Hi,

I recently decided to give my popoplug pro another try after abandoning the project two years ago.

I want to set it up as an owncloud server.

I need help to SSH back into it.

I can't find the plug on my network, as I think it has a static IP from a previous LAN configuration.
I have tried a direct LAN connection to my PC and adjusting the PC LAN settings to the same address as I remember the IP must have been 10.0.0.xx

I very vaguely remember getting Debian on it and trying to install a LAMP server for owncloud and trying to get a desktop GUI.
I did not have too much success back then. I am also unsure now what tutorials I followed, but it was a struggle to find the required files.

The flash drive I used for it I left untouched, though I encounter errors when looking at the flash drive with another linux system.

I can try to find a serial adapter, but it worked on SSH before.

What should I try?

What steps/tutorials should I follow to finally get owncloud working?

I'm no linux or hacking expert, and I'm having a hard time getting back up to speed with everything I did two years ago. Any help would be appreciated.

Help with installing 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) (1 reply)

$
0
0
Hi Bodhi,

Thanks for the confirmation!

everything went great until step 6.

PROBLEM:
Step 6: /usr/sbin/flash_erase /dev/mtd0 0x0 6

My OUTPUT: Erasing 128 Kibyte @ 7f647f5c00000064 -- 6 % complete

I was expecting:
Erasing 128 Kibyte @ a0000 -- 100 % complete

what went wrong?

Thanks.

Changes in SD Card access in U-Boot 2017.07-tld-1? (no replies)

$
0
0
After a few days of learning from failure, I think the only remaining issue is boiled down to uBoot.

Background: Pogoplug V4 was running 2014.07-tld-1 upgraded to 2017.07-tld-1,l SD Card boot

When I was on 2014.07-tld-1, I never have any problems booting up from my Kingston 8GB SD

sudo udevadm info -a -n /dev/root
...
    SUBSYSTEMS=="mmc"
    DRIVERS=="mmcblk"
    ATTRS{manfid}=="0x000041"
...
    ATTRS{type}=="SD"
    ATTRS{date}=="09/2008"
    ATTRS{hwrev}=="0x2"
(SD info for reference)

However, after I upgraded to 2017.07-tld-1, I often encounter problem booting. From netconsole (another great thanks to whoever created this!), seems like it has an issue reading either uImage or uInitrd properly hence it failed to boot. Sometimes issue 'mmc rescan' or 'ext2load' is require. But more likely a few 'boot' after seems to do the job. After it is booted, I don't notice I/O errors.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed

MMC rescan: current device # 0 initialized OK
## 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 **

no IDE devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	16015297  	00000000-01	83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 22 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4115496 bytes read in 102 ms (38.5 MiB/s)
loading uInitrd ...
6284094 bytes read in 201 ms (29.8 MiB/s)
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
9962 bytes read in 39 ms (249 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.17.2-kirkwood-tld-1
   Created:      2018-08-04  20:46:21 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4115432 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Pogov4> boot
boot

Reset IDE: ide_preinit failed

MMC rescan: current device # 0 initialized OK
## 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 **

no IDE devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	16015297  	00000000-01	83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 22 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4115496 bytes read in 112 ms (35 MiB/s)
loading uInitrd ...
6284094 bytes read in 201 ms (29.8 MiB/s)
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
9962 bytes read in 40 ms (243.2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.17.2-kirkwood-tld-1
   Created:      2018-08-04  20:46:21 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4115432 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
Pogov4> boot
boot

Reset IDE: ide_preinit failed

MMC rescan: current device # 0 initialized OK
## 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 **

no IDE devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	63        	16015297  	00000000-01	83
loading envs from mmc 0 ...
** File not found /boot/uEnv.txt **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc

MMC rescan: current device # 0 initialized OK
device mmc 0:1
1 bytes read in 23 ms (0 Bytes/s)
Found bootable drive on mmc 0
loading uImage ...
4115496 bytes read in 141 ms (27.8 MiB/s)
loading uInitrd ...
6284094 bytes read in 200 ms (30 MiB/s)
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
9962 bytes read in 40 ms (243.2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.17.2-kirkwood-tld-1
   Created:      2018-08-04  20:46:21 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4115432 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.17.2-kirkwood-tld-1
   Created:      2018-08-04  20:46:33 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6284030 Bytes = 6 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 ...

In the example above, the third boot seems to be successful (no power recycle). So I suspect the timing maybe it is a bit off when reading from SD card with the new uBoot. (again, I didn't have this issue when I was on 2014.07-tld-1)

I also notice a few "## Unknown partition table type 0" after first "MMC rescan: current device # 0 initialized OK" then the second time "MMC rescan: current device # 0 initialized OK" seems to be able to access the SD card. Is that normal?

Is there anyway to 'slow down' MMC access in uBoot? or a quick band aid fix for it 'retry' (instead of manually type in 'boot') when it fails?

Or is it safe to go back to the old uBoot? I understand there were some new 'features' (dts?) were used in the new uBoot/kernel. If so, how to 'downgrade'? (I expect need to rewrite the envs too?)

Thanks

U-Boot 2015.10 for Iomega HMNHDCE (4 replies)

$
0
0
In the thread "2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)" DaveP mentioned, that this U-Boot breath new life into Iomega HMNHDCE NAS. Is there somebody, who knew how to do it?

Quote
DaveP Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) April 13, 2016 09:35PM Hello Bodhi, Fantastic work so far. I've been able to breath new life into my Iomega HMNHD CE thanks to your and others work. Do you know when the latest u-boot will be updated to include SATA support? -DaveP

Help with Netgear Stora u-boot installation (1 reply)

$
0
0
Hello!

I have Netgear Stora.

login as: admin
Stora version 10.0.x
-bash-3.2$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00600000 00020000 "uImage"
mtd2: 0f900000 00020000 "root"
Problem no.1:
-bash-3.2$ sudo fw_printenv ethaddr
audit_log_user_command(): Connection refused
Warning: Bad CRC, using default environment
## Error: "ethaddr" not defined
Quote
current_envs.txt
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200

Problem no.2 (?):
bash-3.2# dmesg | grep -i 'bad'
Scanning device for bad blocks
Bad eraseblock 120 at 0x00f00000
Bad eraseblock 1144 at 0x08f00000
Bad eraseblock 1352 at 0x0a900000
Bad eraseblock 2010 at 0x0fb40000
Bad eraseblock 2011 at 0x0fb60000
UBI: number of bad PEBs:         5
UBI: number of PEBs reserved for bad PEB handling: 38
Not Problem? All OK?

Problem no.3:
Quote
bodhi
(replace xxx with the real saved values)
fw_setenv mtdparts 'xxxxxxxxx'
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
ethaddr I look in DHCP, ok.
Where to find mtdparts? Default value for Stora?

Thanx!

Boot Debian from USB on Zyxel NSA310 (no replies)

$
0
0
I prepared me an USB drive with Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 following this instructions.

Now I can boot Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (uImage and uinitrd read from USB, the rest read from HDD), but mtd0 partition is read only. How can I mount it writeable?

U-Boot 2013.07 (Sep 20 2013 - 15:45:03)
ZyXEL NSA310 1-Bay Power Media Server


SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
3834666 bytes read in 377 ms (9.7 MiB/s)
7245696 bytes read in 434 ms (15.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834602 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00d00000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA310
[    0.000000] Memory policy: Data cache writeback
[    0.000000] INITRD: 0x00d00000+0x006e9000 overlaps in-use memory region - disabling initrd
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1
[    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: 246440K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 15704K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000042] Switching to timer-based delay loop, resolution 5ns
[    0.000503] Console: colour dummy device 80x30
[    0.000537] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000559] pid_max: default: 32768 minimum: 301
[    0.000754] Security Framework initialized
[    0.000875] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000894] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001743] CPU: Testing write buffer coherency: ok
[    0.002768] Setting up static identity map for 0x100000 - 0x100058
[    0.003057] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006316] devtmpfs: initialized
[    0.011065] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011092] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.011483] prandom: seed boundary self test passed
[    0.015219] prandom: 100 self tests passed
[    0.015232] pinctrl core: initialized pinctrl subsystem
[    0.016386] NET: Registered protocol family 16
[    0.016765] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018372] cpuidle: using governor ladder
[    0.018442] cpuidle: using governor menu
[    0.018835] Feroceon L2: Enabling L2
[    0.018882] Feroceon L2: Cache support initialised.
[    0.024247] No ATAGs?
[    0.033537] vgaarb: loaded
[    0.033856] SCSI subsystem initialized
[    0.034337] usbcore: registered new interface driver usbfs
[    0.034415] usbcore: registered new interface driver hub
[    0.034498] usbcore: registered new device driver usb
[    0.035576] clocksource: Switched to clocksource orion_clocksource
[    0.124157] VFS: Disk quotas dquot_6.6.0
[    0.124241] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.134755] NET: Registered protocol family 2
[    0.135500] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135539] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135623] TCP: Hash tables configured (established 2048 bind 2048)
[    0.135714] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.135744] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.135924] NET: Registered protocol family 1
[    0.136340] RPC: Registered named UNIX socket transport module.
[    0.136353] RPC: Registered udp transport module.
[    0.136360] RPC: Registered tcp transport module.
[    0.136368] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136679] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.137624] audit: initializing netlink subsys (disabled)
[    0.138031] Initialise system trusted keyrings
[    0.138083] Key type blacklist registered
[    0.138181] audit: type=2000 audit(0.132:1): state=initialized audit_enabled=0 res=1
[    0.138266] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.138335] zbud: loaded
[    0.139316] NFS: Registering the id_resolver key type
[    0.139347] Key type id_resolver registered
[    0.139355] Key type id_legacy registered
[    0.139373] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.139383] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.139576] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.139773] fuse init (API version 7.26)
[    0.140116] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.140317] orangefs_init: module version upstream loaded
[    0.140328] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555584] random: fast init done
[    5.975060] Key type asymmetric registered
[    5.975078] Asymmetric key parser 'x509' registered
[    5.975143] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    5.975155] io scheduler noop registered
[    5.975164] io scheduler deadline registered
[    5.975241] io scheduler cfq registered (default)
[    5.976609] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.978514] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    5.978535] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    5.978549] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    5.978563] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.978889] PCI: bus0: Fast back to back transfers disabled
[    5.978915] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.005694] PCI: bus1: Fast back to back transfers disabled
[    6.005904] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    6.005920] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.005939] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    6.005956] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0010000-0xe0013fff 64bit pref]
[    6.005980] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0014000-0xe0014fff 64bit pref]
[    6.006001] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    6.006017] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.006031] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.006047] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    6.006142] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.006667] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.066319] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.066543] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.126314] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.126764] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.128134] console [ttyS0] disabled
[    6.128205] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    6.824166] console [ttyS0] enabled
[    6.836097] loop: module loaded
[    6.839823] sata_mv f1080000.sata: slots 32 ports 2
[    6.847542] scsi host0: sata_mv
[    6.851149] scsi host1: sata_mv
[    6.854552] ata1: SATA max UDMA/133 irq 32
[    6.858726] ata2: SATA max UDMA/133 irq 32
[    6.863633] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    6.870128] nand: Samsung NAND 128MiB 3,3V 8-bit
[    6.874765] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    6.882399] Scanning device for bad blocks
[    6.906519] Bad eraseblock 207 at 0x0000019e0000
[    6.989756] 9 ofpart partitions found on MTD device orion_nand
[    6.995635] Creating 9 MTD partitions on "orion_nand":
[    7.000806] 0x000000000000-0x000000100000 : "uboot"
[    7.007047] 0x000000100000-0x000000180000 : "uboot_env"
[    7.013596] 0x000000180000-0x000000200000 : "key_store"
[    7.020211] 0x000000200000-0x000000280000 : "info"
[    7.026230] 0x000000280000-0x000000c80000 : "etc"
[    7.032125] 0x000000c80000-0x000001680000 : "kernel_1"
[    7.038543] 0x000001680000-0x000004640000 : "rootfs1"
[    7.045114] 0x000004640000-0x000005040000 : "kernel_2"
[    7.051623] 0x000005040000-0x000008000000 : "rootfs2"
[    7.059518] libphy: Fixed MDIO Bus: probed
[    7.064487] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.071120] ehci-pci: EHCI PCI platform driver
[    7.075679] ehci-orion: EHCI orion driver
[    7.079922] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.085468] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.093487] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    7.125682] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.132001] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.138875] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.146172] usb usb1: Product: EHCI Host Controller
[    7.151077] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.157846] usb usb1: SerialNumber: f1050000.ehci
[    7.163225] hub 1-0:1.0: USB hub found
[    7.167099] hub 1-0:1.0: 1 port detected
[    7.171656] usbcore: registered new interface driver usb-storage
[    7.178091] mousedev: PS/2 mouse device common for all mice
[    7.184261] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.191383] i2c /dev entries driver
[    7.198194] hidraw: raw HID events driver (C) Jiri Kosina
[    7.203980] drop_monitor: Initializing network drop monitor service
[    7.210578] NET: Registered protocol family 17
[    7.215121] Key type dns_resolver registered
[    7.220161] registered taskstats version 1
[    7.224279] Loading compiled-in X.509 certificates
[    7.229182] zswap: loaded using pool lzo/zbud
[    7.236088] Key type big_key registered
[    7.241823] Key type encrypted registered
[    7.247281] rtc-mv f1010300.rtc: setting system clock to 2018-08-15 14:20:11 UTC (1534342811)
[    7.365627] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    7.376477] ata1.00: ATA-9: WDC WD20EFRX-68AX9N0, 80.00A80, max UDMA/133
[    7.383212] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.392828] ata1.00: configured for UDMA/133
[    7.407712] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68A 0A80 PQ: 0 ANSI: 5
[    7.417031] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    7.424818] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    7.430667] sd 0:0:0:0: [sda] Write Protect is off
[    7.435696] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.459386]  sda: sda1 sda2
[    7.463940] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.525613] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    7.717372] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    7.724135] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.731360] usb 1-1: Product: USB2.0 Hub
[    7.736335] hub 1-1:1.0: USB hub found
[    7.740496] hub 1-1:1.0: 4 ports detected
[    7.760423] ata2: SATA link down (SStatus 0 SControl F300)
[    7.776759] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[    7.799433] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    7.807289] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[    7.826817] devtmpfs: mounted
[    7.832688] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[    8.065617] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.221123] usb 1-1.3: New USB device found, idVendor=125f, idProduct=db8a
[    8.228170] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.239775] usb 1-1.3: Product: ADATA USB Flash Drive
[    8.245459] usb 1-1.3: Manufacturer: ADATA
[    8.253473] usb 1-1.3: SerialNumber: 27B221117003017D
[    8.260598] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.269821] scsi host2: usb-storage 1-1.3:1.0
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok
[....] Synthesizing the initial hotplug events...[    9.452620] scsi 2:0:0:0: Direct-Access     ADATA    USB Flash Drive  1100 PQ: 0 ANSI: 6
[    9.482947] sd 2:0:0:0: [sdb] 30310400 512-byte logical blocks: (15.5 GB/14.5 GiB)
[ ok     9.502561] sd 2:0:0:0: [sdb] Write Protect is off
[    9.521600] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
done.
[    9.550801]  sdb: sdb1
[    9.557172] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    9.564523] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[....] Waiting for /dev to be fully populated...[    9.867845] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    9.873545] r8169 0000:01:00.0: enabling device (0140 -> 0143)
[    9.899764] hwmon_vid: Unknown VRM version of your CPU
[    9.899791] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    9.899958] adt7475 0-002e: ADT7476 device, revision 1
[    9.899966] adt7475 0-002e: Optional features: in0 in4 fan4 pwm2 vid
[    9.917666] orion_wdt: Initial timeout 21 sec
[   10.019014] marvell-cesa f1030000.crypto: CESA device successfully registered
[   10.038376] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   10.038597] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   10.045389] usbcore: registered new interface driver uas
[   10.286852] r8169 0000:01:00.0 eth0: RTL8168d/8111d at 0xd0dbe000, 00:00:00:00:00:30, XID 083000c0 IRQ 33
[   10.338852] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   10.634048] r8169 0000:01:00.0 enp1s0: renamed from eth0
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   11.812878] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -y -C0 /run/rootdev
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14480/196608 files, 154801/786432 blocks
. ok
[   12.035717] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is not mounted
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 -y -C0 /dev/sdb1
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14456/948416 files, 191552/3788544 blocks
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[....] Cleaning [   13.392668] random: crng init done
[ ok mporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
ifup: failed to bring up eth0
failed.
[   15.275931] NET: Registered protocol family 10
[   15.283520] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1223 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1226 (klogd)
. ok
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root

NSA310> printenv
CONTRY_TYPE=FF
FEATURE_BIT=00
MODEL_ID=A203
PRODUCT_NAME=NSA-310
VENDOR_NAME=ZyXEL Communications Corp.
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/sda1
bootcmd=usb reset;ext4load usb 0:1 0x800000 /boot/uImage;ext4load usb 0:1 0xd00000 /boot/uInitrd;bootm 0x800000 0xd00000
bootdelay=3
ethact=egiga0
ethaddr=cc:5d:4e:c9:f8:f6
kernel_addr=480000
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
nandEcc=1bit
nandEnvBase=100000
stderr=serial
stdin=serial
stdout=serial

Environment size: 686/131068 bytes

root@debian:~# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# 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
/dev/mtd0               0xc0000         0x20000         0x20000

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"

root@debian:~# ls -all /dev/mt*
crw------- 1 root root 90,  0 Aug 15 07:34 /dev/mtd0
crw------- 1 root root 90,  1 Aug 15 07:34 /dev/mtd0ro
crw------- 1 root root 90,  2 Aug 15 07:34 /dev/mtd1
crw------- 1 root root 90,  3 Aug 15 07:34 /dev/mtd1ro
crw------- 1 root root 90,  4 Aug 15 07:34 /dev/mtd2
crw------- 1 root root 90,  5 Aug 15 07:34 /dev/mtd2ro
crw------- 1 root root 90,  6 Aug 15 07:34 /dev/mtd3
crw------- 1 root root 90,  7 Aug 15 07:34 /dev/mtd3ro
crw------- 1 root root 90,  8 Aug 15 07:34 /dev/mtd4
crw------- 1 root root 90,  9 Aug 15 07:34 /dev/mtd4ro
crw------- 1 root root 90, 10 Aug 15 07:34 /dev/mtd5
crw------- 1 root root 90, 11 Aug 15 07:34 /dev/mtd5ro
crw------- 1 root root 90, 12 Aug 15 07:34 /dev/mtd6
crw------- 1 root root 90, 13 Aug 15 07:34 /dev/mtd6ro
crw------- 1 root root 90, 14 Aug 15 07:34 /dev/mtd7
crw------- 1 root root 90, 15 Aug 15 07:34 /dev/mtd7ro
crw------- 1 root root 90, 16 Aug 15 07:34 /dev/mtd8
crw------- 1 root root 90, 17 Aug 15 07:34 /dev/mtd8ro
brw-rw---- 1 root disk 31,  0 Aug 15 07:34 /dev/mtdblock0
brw-rw---- 1 root disk 31,  1 Aug 15 07:34 /dev/mtdblock1
brw-rw---- 1 root disk 31,  2 Aug 15 07:34 /dev/mtdblock2
brw-rw---- 1 root disk 31,  3 Aug 15 07:34 /dev/mtdblock3
brw-rw---- 1 root disk 31,  4 Aug 15 07:34 /dev/mtdblock4
brw-rw---- 1 root disk 31,  5 Aug 15 07:34 /dev/mtdblock5
brw-rw---- 1 root disk 31,  6 Aug 15 07:34 /dev/mtdblock6
brw-rw---- 1 root disk 31,  7 Aug 15 07:34 /dev/mtdblock7
brw-rw---- 1 root disk 31,  8 Aug 15 07:34 /dev/mtdblock8

Pogoplug v3 Networking (no replies)

$
0
0
Here is my situation, I am now setup at home to run my network tethered to my cell phone as the cable provider I was using was unreliable at best, that being said I have found no way to connect my network to my router which was my plan and if i run my cell as a hotspot my phone provider charges the data differently than if ran as a usb tether which is unlimited, so my new plan, if i can actually do this is to run the usb tether to my pogoplug directly then use the ethernet port on the Pogoplug to run data to my router. I know this is backward but I spent days trying to do this with the router which has a usb but the network will not port from it. I am going to try this on a fresh installed Pogoplug running Debian as I bought 2 just in case I would ever have an issue and I guess now is that time. My first attempt is to actually just plug it in and maybe it will just work but as I have very little luck with that kinda thing I am sure there is a lot I will have to do to make it work even if it will. Any input about this would be greatly appreciated!!
Thanks

Which OS can be embedded on GoFlex Home (no replies)

$
0
0
I would like to have the option of being to boot up my GoFlex Home from NAND without needing external storage. As far as I am aware the only two options are running Stock or OpenWrt.

Is there anything else?

Missing new thread (no replies)

$
0
0
All,

There was 1 new thread that might have been deleted by mistake while I cleaned up spam! If you have recently created it and it was gone, please repost it.

nsa 325v2 vs debian noob questions (46 replies)

$
0
0
Hiya,
i own a nsa 325v2 and would like to install debian on it, just i have some questions i cannot seem to find the answer anywhere, so if there's some sort of noob guide i've missed, please gimme the link.

So.. first of all i've read this from nas central and this from Buttzy10169: so if i have understood it well the procedure needs to modify the inborn boot manager, right?
Is there any way to revert these changes?

Once i modify the boot order should i update the uboot? any cons?

Next step is to prepare the usb drive with debian, right?
According to nas central i just have to unzip and put folders into the two partitions, while on bodhi instructions setlist the thing is much longer: which procedure should i follow?

Is there any easy way to backup all of the nas firmware, boot, etc and to flash it back in case i brick it?

Understanding U-boot environment variables (1 reply)

$
0
0
I often see displays of various environment variables but never pay much attention to them apart from a few specific ones, but I'd like to know if there is a definite reference for them and what they mean, or a guide to explain what they are used for.
Here is what I currently have on a Seagate GoFlex Home unit running the Stock version of Linux:-

baudrate=115200
loads_echo=0
ipaddr=169.254.254.253
serverip=169.254.254.254
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethaddr=00:50:43:34:33:06
ethmtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
filesize=33AA2E
bootargs=console=ttyS0,115200 root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand
bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc
console2=console=ttyS0,115200
bootcmd=nand read.e 0x800000 0x100000 0x600000; setenv bootargs $(console2) $(bootargs_root); bootm 0x800000

Pogoplug V3 SATA direct booting (no replies)

$
0
0
I've updated the u-boot release thread to add a link to where to download the SATA direct booting files.

Quote

References:

...

3. SATA direct booting tarball.

Stock u-boot fpr NSA325 V2 (no replies)

$
0
0
I've updated my NSA325 V2 to the new u-boot and had not make a backup of my mtd0 :(
Can someone provide me the stock mtd0.

Rescuing a dud PogoPlug E02 (no replies)

$
0
0
My roommate happened to unplug the Pogoplug cable, and after that it doesn't come back up. I set it up around four years ago, so I don't remember exactly what I did, but I did install Jeff's Rescue System v2 and set up netconsole to debug, although I have forgotten which host it was forwarding messages to. I remember I set up SSH on port 942, but that was for the host OS, not the rescue system, obviously.

I remember I had partitioned my USB HDD to have a ext4(3?) ROOTFS partition, but that HDD is reformatted and re-purposed now. So, I don't have a Unix machine at home, so I connected it directly to my Windows machine, and gave it an IP of 192.168.0.3, and I was able to use Debian on Windows and nmap for Windows to do a port scan and found this -

Quote

Not shown: 996 closed ports

PORT STATE SERVICE VERSION

135/tcp open msrpc Microsoft Windows RPC

139/tcp open netbios-ssn Microsoft Windows netbios-ssn

445/tcp open microsoft-ds?

2869/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)

I don't get a netconsole output from any of those ports.

I don't have a serial cable, but, is there any way to rescue this Pogoplug without that?

Debian on Freecom Silverstore 2 NAS (3 replies)

$
0
0
Hi,

Quite recently I have acquired two NAS units "SiverStore 2" manufactured by Freecom. The units are EOL, so no updates on the software side since 2012. However, I have received the root password from the technical support at freecom and via ssh successfully installed Optware-ng and a chrooted debian wheezy. The units itself has a custom-made operating system with kernel 2.6.31, which is quite outdated and does not have many modules, only the bare minimum that is needed to operate that NAS. I have tried to research online if the operating system on those units could be replaced with a Debian for example, however, it seems those units were not very popular so not much luck. Some info could be found here:

https://wikidevi.com/wiki/Freecom_SilverStore
and
http://www.ezplanet.net/xwiki/bin/view/KnowledgeBase/SilverstoreNAS

As far as I understand the unit is similar to NSA325, however, apparently the stock bootloader is locked to boot only Stock OS. I am not sure if that's the case, hence I wanted to hear your opinion on the matter and maybe an advice. I hope I could either use the stock uboot with a new kernel and Debian or maybe the stock uboot could be replaced with another one. I have two of those NAS units, so I could sacrifice one of them for that project :) I should receive a UART cable on Monday or Tuesday hopefully. Until then I can provide with the following information:

/etc # cat fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.

# MTD device name Device offset Env. size  Flash sector size
/dev/mtd1    0x0   0x20000     0x20000

~ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000a0000 00020000 "uboot"
mtd1: 00040000 00020000 "param"
mtd2: 00280000 00020000 "preroot"
mtd3: 00380000 00020000 "uimage"
mtd4: 076e0000 00020000 "rootfs"
mtd5: 00240000 00020000 "misc"
mtd6: 08000000 00020000 "flash"

/tmp # fw_printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
mfgmodel=HNC-N2
uboot_ver=v0.0.9
preroot_ver=0.1.0
serial_number=5563U01001G247001D5J0D1
opid=Z11101935
ethaddr=00:01:DB:1E:24:F2
serialNo=560722483400721
modelname=56072
runintime=10000
ftpserver=10.41.34.121
testfile=100M
mfgtest_state=final_tested_ok
mkraid5=preok
ftpserver_ip=10.41.87.42
ftpserver_user=admin
ftpserver_passwd=admin
ftpserver_path=/log/mfg_autotest.tgz
ntpserver_ip=pool.ntp.org
ethact=egiga0
fw_ver=2001.4110
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
console=console=ttyS0,115200 mtdparts=nand_mtd:0x000a0000@0x0(uboot),0x00040000@0x000a0000(param),0x00280000@0x000e0000(preroot),0x00380000@0x00360000(uimage),0x076e0000@0x006e0000(rootfs),0x00240000@0x07dc0000(misc),128m@0x0(flash) 
bootcmd_f=nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; 
bootcmd=nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x00380000 0x0027d400; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root);  bootm 0x40000; 
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no


If you need any other information, please let me know. Your help would be appreciated, as I would like to give those devices some new life.


Regards

garagoyun

Changing boot sequence for making stubborn SSD (bad firmware?) boot. (23 replies)

$
0
0
Hi Bodhi!
It's me again, with that annoying Transcend SSD.
The problem is, that this SSD doesn't work reliably after the IDE reset. Sometimes it's working and some times it's timing out. This is not solved by increasing the time span between the ide resets, it seems just completely random.
So what I need is a boot sequence that repeats the ide reset until the SSD is in working condition.

As far as I understood, that's what
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 5
is doing already.

But of course there are consecutive ide resets in the general boot sequence, like for example in:
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset";  setenv scan_mmc "mmc 5.00rescan"; 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
5.00


And as the result of those additional ide resets is random for this SSD again, it will not work for booting from this SSD.

So I wonder, what the additional ide resets are actually needed for, while scanning for the boot drive. Shouldn't all connected devices be already available from the initial
 bootcmd_uenv 
on?


I now have the time for fiddling a bit again and I wanted to get this to work.

Thank you! :)

Uboot 2017 - Goflex home won't boot (1 reply)

$
0
0
Hello,
I have goflex home and a running lastest version of archlinuxarm here http://os.archlinuxarm.org/os/ArchLinuxARM-kirkwood-latest.tar.gz
But after i installed your uboot - https://forum.doozan.com/read.php?3,12381 it not able to boot to ALARM again.

I also tried to create uInitrd
Quote

cd /media/sdb1/boot
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-linux.img-2018-04-arch -d initramfs-linux.img uInitrd
sync
https://forum.doozan.com/read.php?3,56939,58944

I also tried with Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 but no lucks

Here are bot console logs
For ALARM
Quote

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 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: Colorful SL300 128GB Firm: R0522A0 Ser#: AA000000000000000467
Type: Hard Disk
Supports 48-bit addressing
Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
Unknown command 'mmc' - try 'help'
## 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 2048 43511808 2014e27a-01 83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: Colorful SL300 128GB Firm: R0522A0 Ser#: AA000000000000000467
Type: Hard Disk
Supports 48-bit addressing
Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
device ide 0:1
1 bytes read in 6 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
4600064 bytes read in 699 ms (6.3 MiB/s)
loading uInitrd ...
5290107 bytes read in 804 ms (6.3 MiB/s)
loading DTB /boot/dtbs/kirkwood-goflexnet.dtb ...
** File not found /boot/dtbs/kirkwood-goflexnet.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 init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-linux.img-2018-04-arch
Created: 2018-09-28 1:54:49 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5290043 Bytes = 5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK


Starting kernel ...


and for Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2

Quote

gcc (Debian 6.3.0-18) 6.3.0 20170516

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 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: Colorful SL300 128GB Firm: R0522A0 Ser#: AA000000000000000467
Type: Hard Disk
Supports 48-bit addressing
Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
Unknown command 'mmc' - try 'help'
## 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 2048 43511808 2014e27a-01 83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: Colorful SL300 128GB Firm: R0522A0 Ser#: AA000000000000000467
Type: Hard Disk
Supports 48-bit addressing
Capacity: 122104.3 MB = 119.2 GB (250069680 x 512)
device ide 0:1
1 bytes read in 11 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 585 ms (6.2 MiB/s)
loading uInitrd ...
7245696 bytes read in 1098 ms (6.3 MiB/s)
loading DTB /boot/dtbs/kirkwood-goflexnet.dtb ...
** File not found /boot/dtbs/kirkwood-goflexnet.dtb **
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.12.1-kirkwood-tld-1
Created: 2017-07-20 8:11:24 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3821528 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.12.1-kirkwood-tld-1
Created: 2017-07-24 0:18:23 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7245632 Bytes = 6.9 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK


Starting kernel ...


For ALARM the status LED is stay GREEN at final
For Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 status LED stay orange at final

No IP, no SSH up after Starting kernel...

Please help me to boot into my device again, thank you!
Viewing all 901 articles
Browse latest View live