Jump to content

How to migrate to new hardware


sle118

Recommended Posts

A few months ago I dried one of my OPiPC with a 12V power supply and I have not had a chance to try and revive it. So I am looking to migrate the existing 128GB sd card to a OPi Zero.

 

From what I understand, the following would need to be done

Mount the SD card (ideally on a linux BOX or VM)

Replace script.bin with a suitable file 

Sync

Eject 

Enjoy

 

Can anyone confirm?  Do I need to swap the kernel as well, or is it ok to keep the existing one?

 

As for the script.bin, what's the best way to get one?  Download an image and mount it, use fex2bin to generate one?

 

Any help is appreciated.

 

Thank you!

 

*** EDIT: DON'T. DON'T. DON'T. I THOUGHT IT WAS WORKING, BUT ENDED UP REINSTALLING FROM SCRATCH AS THIS IS MUCH LESS EFFORT OVERALL

 

Link to comment
Share on other sites

It will even work to simply boot the Zero with the PC image without exchanging script.bin first. But then you'll run in ARISC errors which is not that funny when you're logged in via serial console. In case you login through SSH it's perfectly OK to boot the Zero with your image, then grab https://raw.githubusercontent.com/armbian/build/master/config/fex/orangepizero.fex and convert it using fex2bin, relink script.bin to the new file, reboot.

 

Then apply all available updates, reboot again and get back to us with the output from 'sudo armbianmonitor -u' to get an advice which Armbian debs to replace with what.

 

Important: Take care that you've a good power supply and cable in between PSU and board: http://www.cnx-software.com/2017/04/27/selecting-a-micro-usb-cable-to-power-development-boards-or-charge-phones/

Link to comment
Share on other sites

@tkaiser, thanks for the quick reply.

 

I have hooked up power on from a 3A 5V adapter to the single row connector pins on pin 1+2, hooked up a USB/Serial dongle to the TX/RX/GND pins and connected the board with the old sd card in place.

 

Here is the serial output:

U-Boot 2016.09-armbian (Sep 15 2016 - 07:28:57 +0200) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC
I2C:   ready
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
Hit any key to stop autoboot:  2 ��� 1 ��� 0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2347 bytes read in 167 ms (13.7 KiB/s)
## Executing script at 43100000
gpio: pin PL10 (gpio 298) value is 1
gpio: pin PG11 (gpio 203) value is 1
57 bytes read in 119 ms (0 Bytes/s)
** File not found /boot/.next **
** Unrecognized filesystem type **
** File not found .next **
36192 bytes read in 490 ms (71.3 KiB/s)
3459162 bytes read in 444 ms (7.4 MiB/s)
5025168 bytes read in 731 ms (6.6 MiB/s)
## Loading init Ramdisk from Legacy Image at 42000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3459098 Bytes = 3.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Using machid 0x1029 from environment
Starting kernel ...
[sun8i_fixup]: From boot, get meminfo:
	Start:	0x40000000
	Size:	512MB
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
ion_reserve_select: ion chipid  [0x2004620!
ion_reserve_common: ion reserve: [0x56000000, 0x60000000]!

Debian GNU/Linux 8 orangesqueeze ttyS0
orangesqueeze login: root

I'm preparing to install updates right now.

 

That little guy certainly doesn't feel as snappy as the OpiPC

 

I''ll post a follow up when updates are completed.

Link to comment
Share on other sites

@jhpadjustable That would explain it!  

 

@tkaiser, the logs were uploaded to : http://sprunge.us/djZG

 

** edit - just noticed that apt-get upgrade had not completed before I uploaded the logs.  I had to run apt-get -f install and let it complete to fix some issues.  Upgrade is running now and I will report again once it's done.


I'll be testing more today; my end goal is to set this little guy as a portable Squeezebox player with the following

- hostapd (unlikely that the builtin hardware supports it, so I have some known-to-be-working-chipset wifi dongles available)

- Some audio output that is of "good enough" quality (if I'm using an external wifi dongle, I might just purchase a cheap expansion board)

 

The biggest issue right now is that I have to stay connected to serial to issue ifdown/ifup as network doesn't want to automatically get an IP address during the initialization sequence.  the log below, starting at 10:02, shows what happens after ifdown eth0;ifup eth0

Apr 28 09:56:21 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
Apr 28 09:56:31 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Apr 28 09:56:42 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
Apr 28 09:56:59 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Apr 28 09:57:11 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
Apr 28 09:57:17 localhost dhclient: No DHCPOFFERS received.
Apr 28 09:57:17 localhost rsyslogd-2007: action 'action 17' suspended, next retry is Fri Apr 28 09:58:17 2017 [try http://www.rsyslog.com/e/2007 ]
Apr 28 09:57:17 localhost dhclient: No working leases in persistent database - sleeping.
Apr 28 10:02:07 localhost systemd[1]: Reloading LSB: Postfix Mail Transport Agent.
Apr 28 10:02:07 localhost rsyslogd-2007: action 'action 17' suspended, next retry is Fri Apr 28 10:03:07 2017 [try http://www.rsyslog.com/e/2007 ]
Apr 28 10:02:07 localhost postfix/master[1392]: reload -- version 2.11.3, configuration /etc/postfix
Apr 28 10:02:07 localhost postfix[5559]: Reloading Postfix configuration...done.
Apr 28 10:02:07 localhost systemd[1]: Reloaded LSB: Postfix Mail Transport Agent.
Apr 28 10:02:07 localhost dhclient: Killed old client process
Apr 28 10:02:08 localhost dhclient: Internet Systems Consortium DHCP Client 4.3.1
Apr 28 10:02:08 localhost dhclient: Copyright 2004-2014 Internet Systems Consortium.
Apr 28 10:02:08 localhost dhclient: All rights reserved.
Apr 28 10:02:08 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/
Apr 28 10:02:08 localhost dhclient:
Apr 28 10:02:08 localhost dhclient: Listening on LPF/eth0/7a:68:b0:c1:78:a4
Apr 28 10:02:08 localhost dhclient: Sending on   LPF/eth0/7a:68:b0:c1:78:a4
Apr 28 10:02:08 localhost dhclient: Sending on   Socket/fallback
Apr 28 10:02:10 localhost dhclient: DHCPRELEASE on eth0 to 192.168.10.1 port 67
Apr 28 10:02:10 localhost dhclient: send_packet: Network is unreachable
Apr 28 10:02:10 localhost dhclient: send_packet: please consult README file regarding broadcast address.
Apr 28 10:02:10 localhost dhclient: dhclient.c:2331: Failed to send 300 byte long packet over fallback interface.
Apr 28 10:02:10 localhost systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
Apr 28 10:02:10 localhost smbd[5608]: Reloading /etc/samba/smb.conf: smbd.
Apr 28 10:02:10 localhost systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
Apr 28 10:02:11 localhost dhclient: receive_packet failed on eth0: Network is down
Apr 28 10:02:11 localhost dhclient: Internet Systems Consortium DHCP Client 4.3.1
Apr 28 10:02:11 localhost dhclient: Copyright 2004-2014 Internet Systems Consortium.
Apr 28 10:02:11 localhost dhclient: All rights reserved.
Apr 28 10:02:11 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/
Apr 28 10:02:11 localhost dhclient:
Apr 28 10:02:11 localhost kernel: [ 2289.272616] gmac0: probed
Apr 28 10:02:11 localhost kernel: [ 2289.276591] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00)
Apr 28 10:02:11 localhost kernel: [ 2289.293264] ADDRCONF(NETDEV_UP): eth0: link is not ready
Apr 28 10:02:11 localhost dhclient: Listening on LPF/eth0/7a:68:b0:c1:78:a4
Apr 28 10:02:11 localhost dhclient: Sending on   LPF/eth0/7a:68:b0:c1:78:a4
Apr 28 10:02:11 localhost dhclient: Sending on   Socket/fallback
Apr 28 10:02:11 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Apr 28 10:02:14 localhost kernel: [ 2292.270275] PHY: gmac0-0:00 - Link is Up - 100/Full
Apr 28 10:02:14 localhost kernel: [ 2292.279319] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Apr 28 10:02:16 localhost ntpd[607]: Listen normally on 6 eth0 fe80::7868:b0ff:fec1:78a4 UDP 123
Apr 28 10:02:16 localhost ntpd[607]: peers refreshed
Apr 28 10:02:19 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Apr 28 10:02:20 localhost dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Apr 28 10:02:20 localhost dhclient: DHCPOFFER from 192.168.10.1
Apr 28 10:02:20 localhost dhclient: DHCPACK from 192.168.10.1
Apr 28 10:02:20 localhost systemd[1]: Reloading LSB: start Samba SMB/CIFS daemon (smbd).
Apr 28 10:02:20 localhost smbd[5689]: Reloading /etc/samba/smb.conf: smbd.
Apr 28 10:02:20 localhost systemd[1]: Reloaded LSB: start Samba SMB/CIFS daemon (smbd).
Apr 28 10:02:22 localhost ntpd[607]: Listen normally on 7 eth0 192.168.10.101 UDP 123
Apr 28 10:02:22 localhost ntpd[607]: peers refreshed
Apr 28 10:02:22 localhost dhclient: bound to 192.168.10.101 -- renewal in 42084 seconds.
Apr 28 10:02:22 localhost systemd[1]: Reloading OpenBSD Secure Shell server.
Apr 28 10:02:23 localhost systemd[1]: Reloaded OpenBSD Secure Shell server.
Apr 28 10:02:23 localhost systemd[1]: Reloading LSB: Postfix Mail Transport Agent.
Apr 28 10:02:23 localhost postfix/master[1392]: reload -- version 2.11.3, configuration /etc/postfix
Apr 28 10:02:23 localhost postfix[5759]: Reloading Postfix configuration...done.
Apr 28 10:02:23 localhost systemd[1]: Reloaded LSB: Postfix Mail Transport Agent.
Apr 28 10:02:24 localhost kernel: [ 2302.410048] eth0: no IPv6 routers present

 

 

Edited by sle118
Realized upgrade had not been run completely
Link to comment
Share on other sites

@tkaiser, here is the result of the armbian monitor: http://sprunge.us/IYjM
** Edit: I think I need to reboot before posting this... sorry. Reboting now and will re-execute armbianmonitor

** Edit 2: The little guy is no longer booting.  Below is the output from serial.  Will try to troubleshoot now. 

Spoiler


U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:02:37)
DRAM: 512 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1

U-Boot 2017.01-armbian (Feb 02 2017 - 03:02:37 +0100) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC
I2C:   ready
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
Hit any key to stop autoboot:  0
6944 bytes read in 134 ms (49.8 KiB/s)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2347 bytes read in 159 ms (13.7 KiB/s)
## Executing script at 43100000
gpio: pin PL10 (gpio 298) value is 1
gpio: pin PG11 (gpio 203) value is 1
** File not found /boot/.verbose **
** File not found /boot/.next **
** Unrecognized filesystem type **
** File not found .next **
35384 bytes read in 101 ms (341.8 KiB/s)
4135259 bytes read in 515 ms (7.7 MiB/s)
4754648 bytes read in 725 ms (6.3 MiB/s)
## Loading init Ramdisk from Legacy Image at 42000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4135195 Bytes = 3.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Using machid 0x1029 from environment

Starting kernel ...

[sun8i_fixup]: From boot, get meminfo:
        Start:  0x40000000
        Size:   512MB
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
ion_reserve_select: ion chipid  [0x2c00042!
ion_reserve_common: ion reserve: [0x57e00000, 0x60000000]!
 

 

Link to comment
Share on other sites

I guess I'll have to mount the sd card on a linux machine and fix the boot section, but I'll need some guidance from someone better qualified than myself as I am not sure where to get the content from

 

I have tried the troubleshooting steps documented for Armbian with no luck. Here is the output from the serial console:

U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:02:37)
DRAM: 512 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1
U-Boot 2017.01-armbian (Feb 02 2017 - 03:02:37 +0100) Allwinner Technology
CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC
I2C:   ready
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
Hit any key to stop autoboot:  0
=> setenv bootargs init=/bin/bash root=/dev/mmcblk0p1 rootwait console=ttyS0,115200
=> ext4load mmc 0 0x49000000 /boot/dtb/${fdtfile}
** File not found /boot/dtb/sun8i-h3-orangepi-pc.dtb **
=> ext4load mmc 0 0x46000000 /boot/zImage
4754648 bytes read in 726 ms (6.2 MiB/s)
=> env set fdt_high ffffffff
=> bootz 0x46000000 - 0x49000000
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree

 

Link to comment
Share on other sites

This was after trying to follow the troubleshooting guide.  What I have done instead is changing the verbosity level and redirecting the output from the boot to the console.  Booting ends with a kernel panic message

 

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000

 

Note that the environment is setup like this

bootargs = console=ttyS0,115200 console=tty1 root= rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=7 storage_type=
fdtfile = sun8i-h3-orangepi-pc.dtb 
 

Here is the full log. Should I post as "spoilers" or "code" is fine?  
 

U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:02:37)
DRAM: 512 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1

U-Boot 2017.01-armbian (Feb 02 2017 - 03:02:37 +0100) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC
I2C:   ready
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
Hit any key to stop autoboot:  0
6944 bytes read in 136 ms (49.8 KiB/s)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
4939 bytes read in 163 ms (29.3 KiB/s)
## Executing script at 43100000
gpio: pin PL10 (gpio 298) value is 1
gpio: pin PG11 (gpio 203) value is 1
Setting verbosity to 7
** File not found /boot/.next **
** Unrecognized filesystem type **
** File not found .next **
35384 bytes read in 102 ms (337.9 KiB/s)
4135259 bytes read in 518 ms (7.6 MiB/s)
4754648 bytes read in 731 ms (6.2 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4135195 Bytes = 3.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Using machid 0x1029 from environment

Starting kernel ...

[sun8i_fixup]: From boot, get meminfo:
        Start:  0x40000000
        Size:   512MB
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
ion_reserve_select: ion chipid  [0x2c00042!
ion_reserve_common: ion reserve: [0x57e00000, 0x60000000]!
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.4.113-sun8i (root@devel) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017
[    0.000000] cma: dma_declare_contiguous(266): ION reserve size should be 4m align! adjust size to 128MBytes
[    0.000000] cma: CMA: reserved 128 MiB at 58000000
[    0.000000] PERCPU: Embedded 8 pages/cpu @c0f5c000 s11968 r8192 d12608 u32768
[    0.000000] Kernel command line: console=ttyS0,115200 console=tty1 root= rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=7 storage_type=
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 512MB = 512MB total
[    0.000000] Memory: 371380k/371380k available, 152908k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc08d0a9c   (8995 kB)
[    0.000000]       .init : 0xc08d1000 - 0xc0924ec0   ( 336 kB)
[    0.000000]       .data : 0xc0926000 - 0xc0995d30   ( 448 kB)
[    0.000000]        .bss : 0xc09964e4 - 0xc0ac97c8   (1229 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:544
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.002520] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.002682] pid_max: default: 32768 minimum: 301
[    0.003101] Security Framework initialized
[    0.003193] AppArmor: AppArmor disabled by boot time parameter
[    0.003675] Mount-cache hash table entries: 512
[    0.005953] Initializing cgroup subsys cpuacct
[    0.006039] Initializing cgroup subsys memory
[    0.006189] Initializing cgroup subsys devices
[    0.006265] Initializing cgroup subsys freezer
[    0.006336] Initializing cgroup subsys blkio
[    0.006434] Initializing cgroup subsys perf_event
[    0.006669] CPU: Testing write buffer coherency: ok
[    0.006822] ftrace: allocating 24851 entries in 73 pages
[    0.070551] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.070641] [sunxi_smp_prepare_cpus] enter
[    0.070742] Setting up static identity map for 0x4061fbf8 - 0x4061fc50
[    0.072839] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.080624] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.081006] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.090358] Brought up 4 CPUs
[    0.090536] SMP: Total of 4 processors activated (19200.00 BogoMIPS).
[    0.092163] devtmpfs: initialized
[    0.107760] wakeup src cnt is : 2.
[    0.107982] sunxi pm init
[    0.108330] pinctrl core: initialized pinctrl subsystem
[    0.120188] NET: Registered protocol family 16
[    0.123563] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.123771] script_sysfs_init success
[    0.125922] gpiochip_add: registered GPIOs 0 to 383 on device: sunxi-pinctrl
[    0.125922] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.125922] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.125922] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.125922] script config pll_video to 297 Mhz
[    0.125922] script config pll_de to 864 Mhz
[    0.125922] script config pll_ve to 402 Mhz
[    0.150472] bio: create slab <bio-0> at 0
[    0.150758] [ARISC] :sunxi-arisc driver v1.04
[    0.162932] [ARISC] :arisc version: [v0.1.58]
[    0.252151] [ARISC] :sunxi-arisc driver v1.04 startup succeeded
[    0.260990] SCSI subsystem initialized
[    0.261501] usbcore: registered new interface driver usbfs
[    0.261725] usbcore: registered new interface driver hub
[    0.261837] usbcore: registered new device driver usb
[    0.261837] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.261837] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.261837] twi_chan_cfg()340 - [twi2] has no twi_regulator.
[    0.261837] Linux video capture interface: v2.00
[    0.261837] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.262732] cfg80211: Calling CRDA to update world regulatory domain
[    0.262925] NetLabel: Initializing
[    0.262925] NetLabel:  domain hash size = 128
[    0.262925] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.262925] NetLabel:  unlabeled traffic allowed by default
[    0.271375] Switching to clocksource arch_sys_counter
[    0.300705] FS-Cache: Loaded
[    0.301328] CacheFiles: Loaded
[    0.328775] NET: Registered protocol family 2
[    0.356420] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.357749] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.358408] TCP bind hash table entries: 16384 (order: 5, 196608 bytes)
[    0.359130] TCP: Hash tables configured (established 16384 bind 16384)
[    0.359195] TCP: reno registered
[    0.359247] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.359346] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.360214] NET: Registered protocol family 1
[    0.361126] RPC: Registered named UNIX socket transport module.
[    0.361199] RPC: Registered udp transport module.
[    0.361251] RPC: Registered tcp transport module.
[    0.361302] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.361769] Trying to unpack rootfs image as initramfs...
[    0.998129] Freeing initrd memory: 4036K
[    0.999581] hw perfevents: enabled with ARMv7 Cortex_A7 PMU driver, 5 counters available
[    0.999897] sunxi_reg_init enter
[    1.001990] audit: initializing netlink socket (disabled)
[    1.002138] type=2000 audit(1.000:1): initialized
[    1.006507] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.007462] NFS: Registering the id_resolver key type
[    1.008350] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.008429] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.010253] NTFS driver 2.1.30 [Flags: R/W].
[    1.011046] fuse init (API version 7.18)
[    1.012039] msgmni has been set to 989
[    1.015445] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    1.015542] io scheduler noop registered
[    1.015591] io scheduler deadline registered
[    1.015772] io scheduler cfq registered (default)
[    1.016720] [DISP]disp_module_init
[    1.017440] cmdline,init_disp=
[    1.017536] cmdline,disp=
[    1.027685] [DISP] Fb_map_kernel_logo,line:932:Fb_map_kernel_logo failed!
[    1.046540] Console: switching to colour frame buffer device 90x36
[    1.068732] [DISP]disp_module_init finish
[    1.069509] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    1.069995] sw_uart_get_devinfo()1503 - uart1 has no uart_regulator.
[    1.070530] sw_uart_get_devinfo()1503 - uart2 has no uart_regulator.
[    1.072030] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    1.081555] sw_uart_pm()890 - uart0 clk is already enable
[    1.091019] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    1.210156] console [ttyS0] enabled
[    3.014624] uart1: ttyS1 at MMIO 0x1c28400 (irq = 33) is a SUNXI
[    3.031915] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    3.059748] brd: module loaded
[    3.082827] loop: module loaded
[    3.096669] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    3.113752] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator.
[    3.132025] spi spi0: master is unqueued, this is deprecated
[    3.149380] spi spi1: master is unqueued, this is deprecated
[    3.165625] tun: Universal TUN/TAP device driver, 1.6
[    3.180552] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    3.198761] PPP generic driver version 2.4.2
[    3.213345] PPP BSD Compression module registered
[    3.227840] PPP Deflate Compression module registered
[    3.248199] PPP MPPE Compression module registered
[    3.262713] NET: Registered protocol family 24
[    3.276744] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.313329] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.331782] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    3.350938] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    3.380078] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    3.397149] hub 1-0:1.0: USB hub found
[    3.410486] hub 1-0:1.0: 1 port detected
[    3.444835] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.463410] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2
[    3.482470] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000
[    3.510112] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00
[    3.527683] hub 2-0:1.0: USB hub found
[    3.541272] hub 2-0:1.0: 1 port detected
[    3.575760] sunxi-ehci sunxi-ehci.3: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.594297] sunxi-ehci sunxi-ehci.3: new USB bus registered, assigned bus number 3
[    3.613476] sunxi-ehci sunxi-ehci.3: irq 108, io mem 0xf1c1c000
[    3.650117] sunxi-ehci sunxi-ehci.3: USB 0.0 started, EHCI 1.00
[    3.667751] hub 3-0:1.0: USB hub found
[    3.681543] hub 3-0:1.0: 1 port detected
[    3.716122] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.734739] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 4
[    3.754023] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000
[    3.790117] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00
[    3.807610] hub 4-0:1.0: USB hub found
[    3.821347] hub 4-0:1.0: 1 port detected
[    3.835967] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.872743] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    3.891272] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 5
[    3.909949] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    3.985358] hub 5-0:1.0: USB hub found
[    3.999447] hub 5-0:1.0: 1 port detected
[    4.034446] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    4.053171] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 6
[    4.071886] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400
[    4.145392] hub 6-0:1.0: USB hub found
[    4.159594] hub 6-0:1.0: 1 port detected
[    4.194608] sunxi-ohci sunxi-ohci.3: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    4.213213] sunxi-ohci sunxi-ohci.3: new USB bus registered, assigned bus number 7
[    4.231708] sunxi-ohci sunxi-ohci.3: irq 109, io mem 0xf1c1c400
[    4.305250] hub 7-0:1.0: USB hub found
[    4.319338] hub 7-0:1.0: 1 port detected
[    4.354205] sunxi-ohci sunxi-ohci.4: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    4.373034] sunxi-ohci sunxi-ohci.4: new USB bus registered, assigned bus number 8
[    4.391620] sunxi-ohci sunxi-ohci.4: irq 111, io mem 0xf1c1d400
[    4.465265] hub 8-0:1.0: USB hub found
[    4.479296] hub 8-0:1.0: 1 port detected
[    4.494261] Initializing USB Mass Storage driver...
[    4.510082] usbcore: registered new interface driver usb-storage
[    4.526850] USB Mass Storage support registered.
[    4.541953] usbcore: registered new interface driver ums-alauda
[    4.558609] usbcore: registered new interface driver ums-cypress
[    4.575210] usbcore: registered new interface driver ums-datafab
[    4.591816] usbcore: registered new interface driver ums_eneub6250
[    4.608309] usbcore: registered new interface driver ums-freecom
[    4.624571] usbcore: registered new interface driver ums-isd200
[    4.640378] usbcore: registered new interface driver ums-jumpshot
[    4.656185] usbcore: registered new interface driver ums-karma
[    4.671491] usbcore: registered new interface driver ums-onetouch
[    4.687056] usbcore: registered new interface driver ums-realtek
[    4.702275] usbcore: registered new interface driver ums-sddr09
[    4.717358] usbcore: registered new interface driver ums-sddr55
[    4.732177] usbcore: registered new interface driver ums-usbat
[    4.748413] mousedev: PS/2 mouse device common for all mice
[    4.762949] sunxikbd_init failed.
[    4.774389] ls_fetch_sysconfig_para: ls_unused.
[    4.787896] [RTC] WARNING: Rtc time will be wrong!!
[    4.801124] [RTC] WARNING: use *internal OSC* as clock source
[    4.815742] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    4.831019] i2c /dev entries driver
[    4.844468] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[    4.869823] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[    4.895696] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1a)
[    4.922279] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[    4.949738] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2a)
[    4.977806] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2b)
[    5.006727] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[    5.036542] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4d)
[    5.067166] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4e)
[    5.098924] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x18)
[    5.132149] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x19)
[    5.166847] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x1a)
[    5.203032] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x29)
[    5.240716] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2a)
[    5.279968] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2b)
[    5.320095] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4c)
[    5.361084] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4d)
[    5.402901] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4e)
[    5.444862] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    5.468778] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    5.496912] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    5.536680] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    5.559092] timeout_to_interv, line 167
[    5.579255] interv_to_timeout, line 189
[    5.599104] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    5.640143] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    5.681150] [cpu_freq] ERR:get cpu extremity frequency from sysconfig failed, use max_freq
[    5.730396] no blue_led, ignore it!
[    5.750478] no led_0, ignore it!
[    5.769021] no led_1, ignore it!
[    5.787141] no led_2, ignore it!
[    5.794092] mmc0: new high speed SDXC card at address 0007
[    5.795181] mmcblk0: mmc0:0007 SD128 117 GiB
[    5.797665]  mmcblk0: p1
[    5.798909] mmcblk mmc0:0007: Card claimed for testing.
[    5.798936] mmc0:0007: SD128 117 GiB
[    5.896077] no led_3, ignore it!
[    5.912432] no led_4, ignore it!
[    5.928363] no led_5, ignore it!
[    5.943910] no led_6, ignore it!
[    5.959021] no led_7, ignore it!
[    5.975475] usbcore: registered new interface driver usbhid
[    5.993026] usbhid: USB HID core driver
[    6.017835] asoc: sndcodec <-> sunxi-codec mapping ok
[    6.036884] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    6.069028] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    6.100052] [DAUDIO0] driver not init,just return.
[    6.124164] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok
[    6.143973] oprofile: using arm/armv7-ca7
[    6.159081] u32 classifier
[    6.171990]     Performance counters on
[    6.185998]     input device check on
[    6.199598]     Actions configured
[    6.213175] IPv4 over IPv4 tunneling driver
[    6.228764] TCP: bic registered
[    6.241509] TCP: cubic registered
[    6.254096] TCP: westwood registered
[    6.266666] TCP: highspeed registered
[    6.279031] TCP: hybla registered
[    6.290629] TCP: htcp registered
[    6.301795] TCP: vegas registered
[    6.312995] TCP: veno registered
[    6.324053] TCP: scalable registered
[    6.335621] TCP: lp registered
[    6.346669] TCP: yeah registered
[    6.357768] TCP: illinois registered
[    6.369160] Initializing XFRM netlink socket
[    6.381876] NET: Registered protocol family 10
[    6.396940] NET: Registered protocol family 17
[    6.409274] NET: Registered protocol family 15
[    6.421474] Registering the dns_resolver key type
[    6.435317] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    6.451833] ThumbEE CPU extension supported.
[    6.464632] Registering SWP/SWPB emulation handler
[    6.479459] registered taskstats version 1
[    6.493943] cmdline,disp=
[    6.505199] [DISP] disp_init_tv,line:539:screen 0 do not support TV TYPE!
[    6.521159] [DISP] bsp_disp_tv_register,line:990:'ptv is null
[    6.535815] [DISP] disp_device_attached_and_enable,line:159:attched ok, mgr1<-->device1, type=2, mode=11
[    6.562769] ths_fetch_sysconfig_para: type err  device_used = 1.
[    6.580690] CPU Budget:corekeeper enabled
[    6.593545] CPU Budget:Register notifier
[    6.605629] CPU Budget:register Success
[    6.617415] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0
[    6.809983] mmc1: new high speed SDIO card at address 0001
[    6.851755] ALSA device list:
[    6.863354]   #0: audiocodec
[    6.874738]   #1: sndhdmi
[    6.887579] Freeing init memory: 332K
[    7.029040] systemd-udevd[98]: starting version 215
[    8.110638] Btrfs loaded
[   19.294627] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[   19.294647]
[   19.325483] CPU3: stopping
[   19.335470] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617a00>] (dump_stack+0x20/0x24)
[   19.335470] [<c0617a00>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298)
[   19.335470] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c)
[   19.335470] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74)
[   19.335470] Exception stack(0xd78fbf68 to 0xd78fbfb0)
[   19.335470] bf60:                   c0f74b38 c094824c 0000000f 00000000 d78fa000 00000003
[   19.335470] bf80: d78fa000 c0996864 4000406a 410fc075 00000000 d78fbfbc d78fbfc0 d78fbfb0
[   19.335470] bfa0: c000f2d8 c000f2dc 60010013 ffffffff
[   19.335470] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c)
[   19.335470] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4)
[   19.335470] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c06148fc>] (secondary_start_kernel+0x108/0x12c)
[   19.335470] [<c06148fc>] (secondary_start_kernel+0x108/0x12c) from [<40613f14>] (0x40613f14)
[   19.335470] CPU0: stopping
[   19.335470] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617a00>] (dump_stack+0x20/0x24)
[   19.335470] [<c0617a00>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298)
[   19.335470] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c)
[   19.335470] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74)
[   19.335470] Exception stack(0xc0927f20 to 0xc0927f68)
[   19.335470] 7f20: c0f5cb38 c094824c 0000000f 00000000 c0926000 c09b9008 00000001 ffffffff
[   19.335470] 7f40: c0f59b40 c09024fc 00000000 c0927f74 c0927f78 c0927f68 c000f2d8 c000f2dc
[   19.335470] 7f60: 60010013 ffffffff
[   19.335470] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c)
[   19.335470] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4)
[   19.335470] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c060f520>] (rest_init+0x9c/0xb8)
[   19.335470] [<c060f520>] (rest_init+0x9c/0xb8) from [<c08d18ac>] (start_kernel+0x2f8/0x358)
[   19.335470] CPU1: stopping
[   19.335470] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0617a00>] (dump_stack+0x20/0x24)
[   19.335470] [<c0617a00>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298)
[   19.335470] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c)
[   19.335470] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74)
[   19.335470] Exception stack(0xd78bdf68 to 0xd78bdfb0)
[   19.335470] df60:                   c0f64b38 c094824c 0000000f 00000000 d78bc000 00000001
[   19.335470] df80: d78bc000 c0996864 4000406a 410fc075 00000000 d78bdfbc d78bdfc0 d78bdfb0
[   19.335470] dfa0: c000f2d8 c000f2dc 600f0013 ffffffff
[   19.335470] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c)
[   19.335470] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4)
[   19.335470] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c06148fc>] (secondary_start_kernel+0x108/0x12c)
[   19.335470] [<c06148fc>] (secondary_start_kernel+0x108/0x12c) from [<40613f14>] (0x40613f14)
[   19.303603] SMP: failed to stop secondary CPUs
[   19.303603] [hotplug]: cpu(2) try to kill cpu(0)
[   19.303603] [hotplug]: try to kill cpu:0 failed!
[   19.303603] [hotplug]: cpu(2) try to kill cpu(1)
[   19.303603] [hotplug]: try to kill cpu:1 failed!
[   19.303603] [hotplug]: cpu(2) try to kill cpu(3)
[   19.303603] [hotplug]: try to kill cpu:3 failed!
[   19.303603] Rebooting in 10 seconds..
[   19.303603] Restarting Linux version 3.4.113-sun8i (root@devel) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017
[   19.303603]

 

Link to comment
Share on other sites

Well, it's hard to spot the reason for init going to die here. It sounds somewhat lame but IIRC I encountered that when testing with 'broken' SD cards.

 

In case you have another Linux box try to check the filesystem there and maybe the best thing is to start over with a fresh SD card that has been tested and then copy over stuff from the previous installation?

Link to comment
Share on other sites

I definitely have another linux box from which I can manipulate images. The sole reason why I am trying to keep that one is that it's my only 128gb sd card and it's 90% full from my compressed music library. Reformatting and re-copying that much data will no doubt introduce wear on that card, which I am trying to avoid.  If I were to grab "stuff" from existing images and overwrite what's on the 128gb card, what would it be?  Kernel? boot folder? 

 

I might just bite the bullet and start from scratch, but it would be best if I could avoid that.

Link to comment
Share on other sites

4 minutes ago, sle118 said:

If I were to grab "stuff" from existing images and overwrite what's on the 128gb card, what would it be?

 

If you're currently running in issues related to filesystem corruption then overwriting anything is not the best idea. I would first run a FS check on another machine then think about later steps.

Link to comment
Share on other sites

Ran e2fsck, and it looks like this something was fixed.

# e2fsck -fD /dev/sdd1
e2fsck 1.42.12 (29-Aug-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdd1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdd1: 193845/7654080 files (0.8% non-contiguous), 26018525/30719744 blocks

 

rebooted and got the same kernel panic
 

 

 

Link to comment
Share on other sites

Posting more progress here in case someone ends up needing the same as myself.   I have decided to replace boot and kernel from my SD card using the content of a proper Orange Pi Zero image and it goes like this

  1. Download the image of choice
  2. Mount the image on a linux machine
  3. Mount the SD card on a Linux machine
  4. Rename /boot on the original SD card to /boot.bak (just to be safe)
  5. Copy the /boot content from the recent image to /boot of the sd card
  6. Copy the content of /usr/src from the recent image to /usr/src of the sd card
  7. Open file /boot/armbianEnv.txt and grab the uuid identifier from "rootdev" (e.g. fd472eba-571d-4583-8873-97f09353655c)
  8. Find the partition name of the sd card that is being changed (e.g. /dev/sdzz)
  9. Change the uuid sudo tune2fs /dev/sdzz -U fd472eba-571d-4583-8873-97f09353655c
  10. Merge modules to load (/etc/modules or some similar files).  Chances are the new image doesn't have the extra modules that had been installed under the previous kernel
  11. sync
  12. sudo e2fsck -fD /dev/sdd1
  13. sync (just in case)
  14. Eject the card and try to boot it up

I will report on progress (if any)

 

 

Link to comment
Share on other sites

@tkaiser I think I made progress here!

 

The little guy seems to be wanting to boot now (woot!).  I'm going to try and explore. So far, 2 services failed to start:

- Login Service

- DHCP Server (this is to be expected, as it was bound to a subnet/network card that isnt there yet)

 

 

**Edit : the little guy is definitely booting up now, so I'm considering this as resolved!

 

 

 

 

Link to comment
Share on other sites

Well, reporting after playing with it for some time.  I think this could work when jumping from platform to platform as long as it's on the same version of Armbian.  Doing this in my case resulted in missing quite a bit of the update scripts for that platform and a few things were not properly configured.  So as an additional step, and to avoid the wear of copying 100gb+ of data back from a full re-install, I ended up mounting the sd card and the latest armbian image on a linux machine and copied from ./ recursively to the sd card.  I think this will still not be perfect ** some symlinks were not copied properly (for example I had to apt-get install --reinstall tzdata).

 

@tkaiser I'm thinking that it might have been better to just take a risk of scrapping the sd card and follow your advice! Next time... !

Link to comment
Share on other sites

Alright, anyone reading this, don't do it. JUST DON'T. do. It. Don't!

 

Not worth the effort, even to try not to wear an SD card.

 

This have me the opportunity to confirm that the pi zero is a good contender for a portable squeezebox server with hostapd and all, but now I have to scrap and rebuild because this method resulted in a mess of simlink and dependencies.

 

Bottom line is reformat and start from scratch; it will take much less effort overall than trying to salvage what cannot be!

Link to comment
Share on other sites

On 5/5/2017 at 10:02 AM, sle118 said:

some symlinks were not copied properly

Did you use cp -r or cp -R ?  Neither of those copy exact ownership, permissions or symlinks.  I've never, ever had a problem copying system disks with cp -a ...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines