Welcome! Log In Create A New Profile

Advanced

Can I install Jessy from Rescue?

Posted by ElEsido 
Can I install Jessy from Rescue?
January 25, 2016 05:22PM
Hi all

My current Debian installation on the Goflex (with a SATA harddisk, sda rootfs, sda2 swap, sda3 data) is showing its age. There are a couple of corrupted sectors and i should run e2fsck, but since it is mounted and rootfs I cannot do that. "touch /forcefsck" didn't help.

I'm willing to perform a fresh install, but am a bit lost where to start. How do I get Jessy on sda1? Can I install it from Rescue? How do I boot into Rescue while the sata disk is plugged in?

Thanks for help!
ElEsido
Re: Can I install Jessy from Rescue?
January 25, 2016 06:55PM
ElEsido Wrote:
-------------------------------------------------------
> Hi all
>
> My current Debian installation on the Goflex (with
> a SATA harddisk, sda rootfs, sda2 swap, sda3 data)
> is showing its age. There are a couple of
> corrupted sectors and i should run e2fsck, but
> since it is mounted and rootfs I cannot do that.
> "touch /forcefsck" didn't help.
>
> I'm willing to perform a fresh install, but am a
> bit lost where to start. How do I get Jessy on
> sda1? Can I install it from Rescue? How do I boot
> into Rescue while the sata disk is plugged in?
>
> Thanks for help!
> ElEsido

You can usually do fsck automatically during boot if the fs errors are trivial, if the errors require maintenance shell then you need serial console connected. The simple approach is to create a new USBrootfs, boot with it and fix the error.

Since you have set up your GFHome already, it is best that you post more info about the box:

- u-boot version

- get the listing of u-boot envs

fw_printenv

- And system info:

mount
dh -f
dmesg

There are a couple different approaches, which one is best is depending on your current system installed, and whether you have install a lot of packages so you like to keep the current system and only do upgrade. I think the temporary USB rootfs is best, but let's see your u-boot envs first.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Can I install Jessy from Rescue?
January 26, 2016 01:24AM
Hi bodhi!

Thank you for your reply!

U-Boot:
U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:49:48 -0800)
Seagate GoFlex Net
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25

Envs:
# 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_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
ethaddr=00:10:75:26:5F:67
usb_init=run usb_scan ; setenv usb_root LABEL=rootfs
arcNumber=3089
ipaddr=192.168.1.11
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
sata_boot=ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_bootcmd=run usb_set_bootargs; run sata_boot
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset
serverip=192.168.1.58
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 preboot_nc
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_pogo=run bootcmd_rescue
rescue_installed=1

System Info
# mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
tmpfs on /tmp type tmpfs (rw)
/dev/sda3 on /data type ext3 (rw,noatime,nodiratime)
//192.168.1.1/Data/Musik on /timecapsule type cifs (ro,mand)
# dmesg
Initializing cgroup subsys cpu
Linux version 2.6.38.8-squeezeplug (paddockd@pplugpro) (gcc version 4.4.5 (Debian 4.4.5-8) ) #21 PREEMPT Mon Sep 19 11:49:47 EDT 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Seagate GoFlex Net
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c04eb2c0, node_mem_map c0588000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 121948k/121948k available, 9124k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc8800000 - 0xfe800000   ( 864 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002c000   ( 144 kB)
      .text : 0xc002c000 - 0xc04c049c   (4690 kB)
      .data : 0xc04c2000 - 0xc04ec780   ( 170 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
NR_IRQS:114
sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
Kirkwood: MV88F6281-A1, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
  final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource orion_clocksource
FS-Cache: Loaded
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 32
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 2296K
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
FS-Cache: Netfs 'nfs' registered for caching
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 242
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
Scanning device for bad blocks
Bad eraseblock 608 at 0x000004c00000
Bad eraseblock 893 at 0x000006fa0000
4 cmdlinepart partitions found on MTD device orion_nand
Creating 4 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000002500000 : "rootfs"
0x000002500000-0x000010000000 : "data"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:10:75:26:5f:67
console [netcon0] enabled
netconsole: network logging started
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mousedev: PS/2 mouse device common for all mice
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata1.00: ATA-8: WDC WD3200BPVT-00HXZT3, 01.01A01, max UDMA/133
ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200BPVT-0 01.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
usb 1-1: new high speed USB device using orion-ehci and address 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
ata2: SATA link down (SStatus 0 SControl F300)
usb 1-1.3: new low speed USB device using orion-ehci and address 3
usb 1-1.4: new high speed USB device using orion-ehci and address 4
rtc-mv rtc-mv: internal RTC not ticking
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
Registered led device: status:green:health
Registered led device: status:orange:fault
Registered led device: sata0:white:bar0
Registered led device: sata0:white:bar1
Registered led device: sata0:white:bar2
Registered led device: sata0:white:bar3
Registered led device: sata1:white:bar0
Registered led device: sata1:white:bar1
Registered led device: sata1:white:bar2
Registered led device: sata1:white:bar3
usbhid 1-1.3:1.0: couldn't find an input interrupt endpoint
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
Registering the dns_resolver key type
VFP support v0.3: not present
Gating clock of unused units
before: 0x00dfc3fd
 after: 0x00c7c1c9
registered taskstats version 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing init memory: 144K
udev[641]: starting version 164
udev[772]: starting version 164
usbcore: registered new interface driver snd-usb-audio
Adding 524284k swap on /dev/sda2.  Priority:-1 extents:1 across:524284k 
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
device-mapper: ioctl: 4.19.1-ioctl (2011-01-07) initialised: dm-devel@redhat.com
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda3): using internal journal
EXT3-fs (sda3): mounted filesystem with writeback data mode
eth0: link up, 1000 Mb/s, full duplex, flow control disabled
sshd (1494): /proc/1494/oom_adj is deprecated, please use /proc/1494/oom_score_adj instead.
FS-Cache: Netfs 'cifs' registered for caching

debhelper ist not installed, and apt-getting it produces a screenfull of errors of this kind:
Fehl http://ftp.us.debian.org/debian/ squeeze/main gettext-base armel 0.18.1.1-3
  404  Not Found [IP: 128.30.2.26 80]
Hole:1 http://ftp.us.debian.org/debian/ squeeze/main autopoint all 0.18.1.1-3 [627 kB]
Fehl http://ftp.de.debian.org/debian/ squeeze/main gettext-base armel 0.18.1.1-3
  404  Not Found
Fehl http://ftp.de.debian.org/debian/ squeeze/main libpcre3 armel 8.02-1.1
  404  Not Found
Fehl http://ftp.de.debian.org/debian/ squeeze/main libxml2 armel 2.7.8.dfsg-2+squeeze8
  404  Not Found
Hole:2 http://security.debian.org/ squeeze/updates/main libxml2 armel 2.7.8.dfsg-2+squeeze8 [818 kB]
Hole:3 http://ftp.us.debian.org/debian/ squeeze/main html2text armel 1.3.2a-15 [97.0 kB]
Fehl http://ftp.us.debian.org/debian/ squeeze/main libglib2.0-0 armel 2.24.2-1
  404  Not Found [IP: 128.30.2.26 80]
Hole:4 http://ftp.us.debian.org/debian/ squeeze/main intltool-debian all 0.35.0+20060710.1 [30.8 kB]
Hole:5 http://ftp.us.debian.org/debian/ squeeze/main po-debconf all 1.0.16+nmu1 [223 kB]
Fehl http://ftp.de.debian.org/debian/ squeeze/main libglib2.0-0 armel 2.24.2-1
  404  Not Found
Fehl http://ftp.de.debian.org/debian/ squeeze/main libcroco3 armel 0.6.2-1
  404  Not Found
Fehl http://ftp.de.debian.org/debian/ squeeze/main libunistring0 armel 0.9.3-3
  404  Not Found
Fehl http://ftp.de.debian.org/debian/ squeeze/main gettext armel 0.18.1.1-3
  404  Not Found
Re: Can I install Jessy from Rescue?
January 26, 2016 03:20AM
ElEsido,

You have an interesting installation on your Goflex Net!

- u-boot is latest 2015.10-tld-1
- u-boot envs is circa 2012 (Jeff's u-boot envs)
- Debian is really old squeezeplug (2.6.38.8-squeezeplug)

Here is what I would do:

1. Create the new rootfs on USB with the latest rootfs from the kernel and rootfs thread. See section

Quote

Updated 24 Feb 2015:

This rootfs is the first Debian jessie rootfs in my Kirkwood kernel/rootfs release series, and to keep in sync with kernel Linux-3.18.5-kirkwood-tld-1.

Basically, with this approach, you should create the rootfs on a USB stick, format it as Ext2 or Ext3, label the partition as rootfs, as instructed in the 3.18.5 rootfs section. With your current envs, you need to do step 4 (embedded DTB). Now you have a new rootfs on USB that can boot with your current u-boot envs.

1. Power down, unplug the HDD, plug in this USB rootfs. And boot with it.

2. After booting successfully to 3.18.5 rootfs, plug in the HDD (it's OK to do this on the GoFlex Net). And mount the first HDD partition (your old rootfs) as sdb1.

3. Run e2fsck and fix the fs errors on sdb1.

4. Now you have a choice of:

a. Keep your rootfs 2.6.38.8-squeezeplug and upgrade the kernel to 4.2 later. Doing this will get you back to the squeezplug Debian like before. And then you can upgrade the kernel to 4.2.

b. Wipe out your sdb1 and copy the content of sda1 to it. This will give you a fresh 3.18.5 jessie rootfs. You will need to reinstall whatever packages that you have done before.

Let me know if you choose option a or b. And we'll go from there.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Can I install Jessy from Rescue?
January 26, 2016 03:44AM
Hi bodhi

Thanks a lot! I will go with a fresh install (option 4b). I probably will get around to doing it this weekend.

Kind regards
ElEsido
Re: Can I install Jessy from Rescue?
January 26, 2016 08:50AM
Found the time to do it now. Great instructions on that page, bodhi! All went smoothly.

The current installation is:

Envs:

# 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_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
ethaddr=00:10:75:26:5F:67
usb_init=run usb_scan ; setenv usb_root LABEL=rootfs
arcNumber=3089
ipaddr=192.168.1.11
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
sata_boot=ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_bootcmd=run usb_set_bootargs; run sata_boot
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset
serverip=192.168.1.58
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 preboot_nc
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_pogo=run bootcmd_rescue
rescue_installed=1
I have formatted rootfs as ext3, are there any envs I need to change?


System Info:
# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=14367,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=12160k,mode=755)
/dev/sda1 on / type ext2 (rw,noatime,errors=remount-ro,user_xattr,acl)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=24300k)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)

# dh -f
dh: No compatibility level specified in debian/compat
dh: This package will soon FTBFS; time to fix it!
dh: cannot read debian/control: No such file or directory

# dmesg
[    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 3.18.5-kirkwood-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 PREEMPT Thu Feb 5 17:58:07 PST 2015
[    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 GoFlex Net
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c0802d40, node_mem_map c7efa000
[    0.000000]   DMA zone: 256 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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: 114936K/131072K available (5640K kernel code, 365K rwdata, 1920K rodata, 268K init, 305K bss, 16136K reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc076a240   (7561 kB)
      .init : 0xc076b000 - 0xc07ae000   ( 268 kB)
      .data : 0xc07ae000 - 0xc08096fc   ( 366 kB)
       .bss : 0xc08096fc - 0xc0855d84   ( 306 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000016] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000416] Console: colour dummy device 80x30
[    0.000446] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090120] pid_max: default: 32768 minimum: 301
[    0.090261] Security Framework initialized
[    0.090364] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090384] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091125] Initializing cgroup subsys devices
[    0.091158] Initializing cgroup subsys freezer
[    0.091192] Initializing cgroup subsys net_cls
[    0.091214] Initializing cgroup subsys blkio
[    0.091318] CPU: Testing write buffer coherency: ok
[    0.091771] Setting up static identity map for 0x557418 - 0x557470
[    0.092079] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.094548] devtmpfs: initialized
[    0.097174] prandom: seed boundary self test passed
[    0.101273] prandom: 100 self tests passed
[    0.101303] pinctrl core: initialized pinctrl subsystem
[    0.101808] regulator-dummy: no parameters
[    0.106433] NET: Registered protocol family 16
[    0.106897] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130116] cpuidle: using governor ladder
[    0.160117] cpuidle: using governor menu
[    0.160542] Feroceon L2: Enabling L2
[    0.160589] Feroceon L2: Cache support initialised.
[    0.160989] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.165377] No ATAGs?
[    0.201816] vgaarb: loaded
[    0.202205] usbcore: registered new interface driver usbfs
[    0.202287] usbcore: registered new interface driver hub
[    0.202353] usbcore: registered new device driver usb
[    0.203456] Switched to clocksource orion_clocksource
[    0.241967] NET: Registered protocol family 2
[    0.242739] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.242764] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.242784] TCP: Hash tables configured (established 1024 bind 1024)
[    0.242855] TCP: reno registered
[    0.242872] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.242894] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.243099] NET: Registered protocol family 1
[    0.243520] RPC: Registered named UNIX socket transport module.
[    0.243533] RPC: Registered udp transport module.
[    0.243539] RPC: Registered tcp transport module.
[    0.243547] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.243568] PCI: CLS 0 bytes, default 32
[    0.243824] Unpacking initramfs...
[    0.799718] Freeing initrd memory: 6384K (c1100000 - c173c000)
[    0.799856] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.801233] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.801267] Initialise system trusted keyring
[    0.801370] audit: initializing netlink subsys (disabled)
[    0.801427] audit: type=2000 audit(0.790:1): initialized
[    0.802253] zpool: loaded
[    0.802270] zbud: loaded
[    0.802587] VFS: Disk quotas dquot_6.5.2
[    0.802650] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.803257] NFS: Registering the id_resolver key type
[    0.803307] Key type id_resolver registered
[    0.803316] Key type id_legacy registered
[    0.803344] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.803359] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.803646] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.803983] msgmni has been set to 236
[    0.804144] Key type big_key registered
[    0.807089] alg: No test for stdrng (krng)
[    0.807132] Key type asymmetric registered
[    0.807150] Asymmetric key parser 'x509' registered
[    0.807244] bounce: pool size: 64 pages
[    0.807338] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.807360] io scheduler noop registered
[    0.807375] io scheduler deadline registered
[    0.807433] io scheduler cfq registered (default)
[    0.808764] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.809419] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.809828] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.810359] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.843534] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.883525] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.883719] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.923523] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.963520] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.963959] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.965313] console [ttyS0] disabled
[    0.965378] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.567173] console [ttyS0] enabled
[    1.572281] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    1.578697] nand: Micron MT29F2G08AAD
[    1.582379] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[    1.588092] Scanning device for bad blocks
[    1.657205] Bad eraseblock 608 at 0x000004c00000
[    1.692228] Bad eraseblock 893 at 0x000006fa0000
[    1.820114] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.826427] Creating 4 MTD partitions on "orion_nand":
[    1.831592] 0x000000000000-0x000000100000 : "u-boot"
[    1.837014] 0x000000100000-0x000000500000 : "uImage"
[    1.842378] 0x000000500000-0x000002500000 : "rootfs"
[    1.847808] 0x000002500000-0x000010000000 : "data"
[    1.854224] libphy: Fixed MDIO Bus: probed
[    1.858652] libphy: orion_mdio_bus: probed
[    1.869009] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.954195] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:5f:67
[    2.963157] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.969756] ehci-pci: EHCI PCI platform driver
[    2.974313] ehci-orion: EHCI orion driver
[    2.978512] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.984087] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.991929] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    3.013494] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    3.019718] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.026562] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.033836] usb usb1: Product: EHCI Host Controller
[    3.038734] usb usb1: Manufacturer: Linux 3.18.5-kirkwood-tld-1 ehci_hcd
[    3.045485] usb usb1: SerialNumber: f1050000.ehci
[    3.050945] hub 1-0:1.0: USB hub found
[    3.054806] hub 1-0:1.0: 1 port detected
[    3.059658] mousedev: PS/2 mouse device common for all mice
[    4.073576] rtc-mv f1010300.rtc: internal RTC not ticking
[    4.079208] i2c /dev entries driver
[    4.085214] hidraw: raw HID events driver (C) Jiri Kosina
[    4.091012] drop_monitor: Initializing network drop monitor service
[    4.097600] TCP: cubic registered
[    4.100940] NET: Registered protocol family 17
[    4.105572] Key type dns_resolver registered
[    4.110688] Loading compiled-in X.509 certificates
[    4.115566] registered taskstats version 1
[    4.120670] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    4.128183] PM: Hibernation image not present or could not be loaded.
[    4.129237] Freeing unused kernel memory: 268K (c076b000 - c07ae000)
[    4.204271] systemd-udevd[57]: starting version 215
[    4.211203] random: systemd-udevd urandom read with 6 bits of entropy available
[    4.350794] SCSI subsystem initialized
[    4.413730] libata version 3.00 loaded.
[    4.415817] sata_mv f1080000.sata: version 1.28
[    4.416092] sata_mv f1080000.sata: slots 32 ports 2
[    4.462912] scsi host0: sata_mv
[    4.480965] scsi host1: sata_mv
[    4.488776] ata1: SATA max UDMA/133 irq 32
[    4.492900] ata2: SATA max UDMA/133 irq 32
[    5.033508] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.073537] ata1.00: ATA-8: WDC WD3200BPVT-00HXZT3, 01.01A01, max UDMA/133
[    5.080446] ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.143539] ata1.00: configured for UDMA/133
[    5.163868] scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200BPVT-0 1A01 PQ: 0 ANSI: 5
[    5.523498] ata2: SATA link down (SStatus 0 SControl F300)
[    5.556034] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[    5.566074] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.571655] sd 0:0:0:0: [sda] Write Protect is off
[    5.576543] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.576677] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.632446]  sda: sda1 sda2 sda3
[    5.638330] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.646800] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   16.019096] EXT2-fs (sda1): warning: mounting ext3 filesystem as ext2
[   18.204895] systemd-udevd[257]: starting version 215
[   18.727881] orion_wdt: Initial timeout 21 sec
[   18.865199] USB Power: 5000 mV 
[   20.929719] random: nonblocking pool is initialized
[   23.290529] NET: Registered protocol family 10
[   24.517349] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.153035] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   27.162959] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

New /etc/fstab
# **************************
# HAVE A LOOK AT /etc/mtab
# ************************
#
#
#
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/root      /               ext3    noatime,errors=remount-ro 0 1
tmpfs          /tmp            tmpfs   defaults          0       0
LABEL=swap       none           swap    sw                              0       0
LABEL=data       /data          ext3    defaults,noatime,nodiratime     0       2
#
# Timecapsule via Samba
//192.168.1.1/Data/Musik /timecapsule cifs username=squeezeplug,password=AbleArtist96,ro,noauto,iocharset=utf8 0 0
I think next ist to install Samba, Logitechmediaserver (apparently I have to build it since no binary version supports Perl 5.20 armel, only armhf) and then listen to some music. :-) Or is there another update that you would recommend?

The information you have provided is very helpful, thanks a lot!

Best
ElEsido



Edited 1 time(s). Last edit at 01/26/2016 08:56AM by ElEsido.
Re: Can I install Jessy from Rescue?
January 26, 2016 09:47AM
ElEsido,

> Found the time to do it now. Great instructions on
> that page, bodhi! All went smoothly.

Cool :) everything looks good, except the ext2/ext3 file system issue.

> I have formatted rootfs as ext3, are there any
> envs I need to change?
> ....
> [ 16.019096] EXT2-fs (sda1): warning: mounting
> ext3 filesystem as ext2

You need to change the u-boot env for rootfs type:

fw_setenv usb_rootfstype ext3

Iirc, I thought some forum members have Logitech mediaserver installed. You might want to search for this before try building.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Can I install Jessy from Rescue?
January 28, 2016 04:26PM
I tried with the packages referenced in different fora, but no luck. Want to try the build script supplied with the source. The build aborts with the following error:

...
Running Mkbootstrap for Audio::Scan ()
chmod 644 Scan.bs
cc -c  -I. -I.. -Isrc -Iinclude -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.95\" -DXS_VERSION=\"0.95\" -fPIC "-I/usr/lib/arm-linux-gnueabi/perl/5.20/CORE"  -O2 -Wall -Wno-unused-value -Wno-format-security Scan.c
In file included from Scan.xs:2:0:
/usr/lib/arm-linux-gnueabi/perl/5.20/CORE/perl.h:676:23: fatal error: sys/types.h: No such file or directory
 #include <sys/types.h>
                       ^
compilation terminated.
Makefile:340: recipe for target 'Scan.o' failed
make: *** [Scan.o] Error 1
make test failed, aborting

A quick google search shows that for somebody building an eralier version under Solaris fialed with a similar message and the solution was to install the kernel headers. How can I do that with the current system?
apt-cache search linux-headers-$(uname -r)
didn't show anything.

Thanks!

Edit: Success! Got it to work with the most current nightly binary and the second file linked in this post here.



Edited 1 time(s). Last edit at 01/28/2016 04:47PM by ElEsido.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: