Quantcast
Channel: Linux Device Hacking - Debian
Viewing all 26691 articles
Browse latest View live

Re: Kernel Update Questions

$
0
0
> To be clear, I should install the headers file
> with dkpg also?

No need to install it. The headers come in to play only if you are going to compile something. Such as a module that is not in the kernel. Or you'd write code and compile it to run some apps of your own.


> If so, there must be a problem as
> I tried that and it did not complete, complaining
> of a problem with the tar. The md5 of the full
> tarball checked good.
> I see if I have the
> complete log and update.

Try this command and post the log

ls -lh linux-headers-5.5.1-kirkwood-tld-1_1.0_armel.deb
dpkg -i linux-headers-5.5.1-kirkwood-tld-1_1.0_armel.deb

BTW, any time when in doubt, and you want to see all kernel versions installed on your box, use dpkg -l:

dpkg -l | grep linux-image
dpkg -l | grep linux-header

Re: Kernel Update Questions

$
0
0
Ran fine this time...
root@m300-2:/boot# ls -lh linux-headers-5.5.1-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root 11M Feb  2 01:03 linux-headers-5.5.1-kirkwood-tld-1_1.0_armel.deb
root@m300-2:/boot# dpkg -i linux-headers-5.5.1-kirkwood-tld-1_1.0_armel.deb
(Reading database ... 15907 files and directories currently installed.)
Preparing to unpack linux-headers-5.5.1-kirkwood-tld-1_1.0_armel.deb ...
Unpacking linux-headers-5.5.1-kirkwood-tld-1 (1.0) ...
Setting up linux-headers-5.5.1-kirkwood-tld-1 (1.0) ...
root@m300-2:/boot#

Dunno what happened the first time. Good to know it's only needed to compile a kernel. I am pretty sure I'll never get to that.

Note no headers for 5.2.9. You don't include them in the file system, I guess?
root@m300-2:/boot# dpkg -l | grep linux-image
ii  linux-image-5.2.9-kirkwood-tld-1   1.0                           armel        Linux kernel binary image for version 5.2.9-kirkwood-tld-1
ii  linux-image-5.5.1-kirkwood-tld-1   1.0                           armel        Linux kernel, version 5.5.1-kirkwood-tld-1
root@m300-2:/boot# dpkg -l | grep linux-header
ii  linux-headers-5.5.1-kirkwood-tld-1 1.0                           armel        Linux kernel headers for 5.5.1-kirkwood-tld-1 on armel

My recently upgraded Pogo E02 has no headers at all, just the 5.2.9 and 5.5.1 kernel images.

Thanks for the info.

Re: Kernel Update Questions

$
0
0
Mike,


> Dunno what happened the first time. Good to know
> it's only needed to compile a kernel. I am pretty
> sure I'll never get to that.

Not the kernel. Sometime you would plug in a gadget, and the module supporting that device is not in the kernel. So you would want to be able to download the module source, compile and run it. Very rarely that you would need a new kernel to manage a new device. But I'd always like to know that so I can include the module for new device in the next release, to save users some maintenance effort.


> Note no headers for 5.2.9. You don't include them
> in the file system, I guess?

The kernel headers is large in size. And the rootfs would grow significantly, relative to the basic rootfs I released, if I had pre-installed the headers deb. So it is something users would need to learn to to do it when they need to compile new modules.

Re: Kernel Update Questions

$
0
0
OK, all good now. Thanks for all your help and info on this stuff.

Errors in Boot Log for Dell M300

$
0
0
A fresh install of the 5.2.9 file system and 5.5.1 kernel. After 2 or 3 clean boots, ran into this on the serial connection:

Starting version 241
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
sata_rootfs: clean, 40782/262144 files, 303302/1048576 blocks
done.
[   18.929530][  T200] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   18.947128][  T200] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   20.342031][  T403] 8<--- cut here ---
[   20.345806][  T403] Unable to handle kernel paging request at virtual address 1017df80
[   20.368746][  T403] pgd = (ptrval)
[   20.372165][  T403] [1017df80] *pgd=00000000
[   20.376451][  T403] Internal error: Oops: 5 [#1] PREEMPT ARM
[   20.382132][  T403] Modules linked in:
[   20.385894][  T403] CPU: 0 PID: 403 Comm: udevadm Not tainted 5.5.1-kirkwood-tld-1 #1.0
[   20.393929][  T403] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   20.400923][  T403] PC is at kernfs_seq_next+0x8/0x64
[   20.405990][  T403] LR is at 0x1017df80
[   20.409835][  T403] pc : [<802e6004>]    lr : [<1017df80>]    psr: a0000013
[   20.416820][  T403] sp : 8200de28  ip : 8200ddf4  fp : 00000000
[   20.422757][  T403] r10: 00000000  r9 : 8200c000  r8 : ee0ed4a8
[   20.428697][  T403] r7 : 802e5ffc  r6 : ee59bdc0  r5 : 00000000  r4 : ee0ed4a0
[   20.435943][  T403] r3 : 80a10124  r2 : 66abbb58  r1 : ee0ed4a0  r0 : ee59bdc0
[   20.443190][  T403] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   20.451046][  T403] Control: 0005397f  Table: 6ed9c000  DAC: 00000051
[   20.457507][  T403] Process udevadm (pid: 403, stack limit = 0x(ptrval))
[   20.464231][  T403] Stack: (0x8200de28 to 0x8200e000)
[   20.469300][  T403] de20:                   ee0ed4a0 00000000 ee59bdc0 8025f024 8200ded0 ee0ed4a0
[   20.478212][  T403] de40: 00000000 00000001 ffffff9c 80271048 ee59bb00 81004228 8200df78 00020000
[   20.487124][  T403] de60: 826ec840 ee568000 00000041 000041ed 00000000 00000004 00000000 0000001d
[   20.496037][  T403] de80: 00000000 8200c000 81004228 ee59bb00 ee59bdc0 eef577b0 ee56af68 8027af74
[   20.504948][  T403] dea0: 5e49d257 66abbb58 1e65fb80 00000005 81004228 8200df78 00000001 ffffff9c
[   20.513860][  T403] dec0: 8200c000 00000000 7eccb8c4 8027123c eef577b0 ee56af68 e293b68b 00000006
[   20.522771][  T403] dee0: 827b6031 8102b6bc 826ec850 ee565f68 ee59bdc0 00000109 ee59bb00 00000068
[   20.531683][  T403] df00: 00000000 00000000 00000000 8200df10 00000ff0 7eccb840 00000ff0 827b6010
[   20.540596][  T403] df20: ffffe000 8063a654 827b6010 00000ff0 00000ff0 66abbb58 00000005 826eca94
[   20.549507][  T403] df40: 827b6000 00000000 00000005 00000002 ffffff9c 8027f060 00000000 66abbb58
[   20.558419][  T403] df60: 81004228 00000005 000a0000 81004228 827b6000 8025fdb4 00020000 66ab0000
[   20.567331][  T403] df80: 00000004 00000100 00000001 66abbb58 00a6e150 76f72968 00000008 00000142
[   20.576243][  T403] dfa0: 80101208 80101000 00a6e150 76f72968 ffffff9c 7eccb840 000a0000 00000000
[   20.585154][  T403] dfc0: 00a6e150 76f72968 00000008 00000142 7eccb840 00a85b70 00a769e0 7eccb8c4
[   20.594066][  T403] dfe0: 76f3e000 7eccb6b0 0d08a900 76eb6250 60000010 ffffff9c 00000000 00000000
[   20.602988][  T403] [<802e6004>] (kernfs_seq_next) from [<8025f024>] (do_dentry_open+0x2d4/0x330)
[   20.611901][  T403] [<8025f024>] (do_dentry_open) from [<80271048>] (path_openat+0xa20/0xbd8)
[   20.620462][  T403] [<80271048>] (path_openat) from [<8027123c>] (do_filp_open+0x3c/0x9c)
[   20.628677][  T403] [<8027123c>] (do_filp_open) from [<8025fdb4>] (do_sys_open+0x70/0xf4)
[   20.636891][  T403] [<8025fdb4>] (do_sys_open) from [<80101000>] (ret_fast_syscall+0x0/0x50)
[   20.645363][  T403] Exception stack(0x8200dfa8 to 0x8200dff0)
[   20.651130][  T403] dfa0:                   00a6e150 76f72968 ffffff9c 7eccb840 000a0000 00000000
[   20.660042][  T403] dfc0: 00a6e150 76f72968 00000008 00000142 7eccb840 00a85b70 00a769e0 7eccb8c4
[   20.668952][  T403] dfe0: 76f3e000 7eccb6b0 0d08a900 76eb6250
[   20.674719][  T403] Code: 12600020 e12fff1e e92d4070 e590e048 (e59ee000)
[   20.744457][  T403] ---[ end trace bf9130f3642c377c ]---
Segmentation fault
failed.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Setting hostname to 'm300-2'...done.
[ ok ] Activating swap:.
[   21.468247][  T570] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=sata_rootfs is mounted
LABEL=data is not mounted
[/sbin/fsck.ext4 (1) -- /mnt/data] fsck.ext4 -y -C0 /dev/sda2
e2fsck 1.44.5 (15-Dec-2018)
data: clean, 11/715264 files, 68287/2860800 blocks
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location[ ok ritable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[....] Will now mount local filesystems:[   22.719341][  T853] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
. ok
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[....] Initializing random number generator...[   23.499024][ T1047] random: dd: uninitialized urandom read (512 bytes read)
done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/18:03:73:41:dc:68
Sending on   LPF/eth0/18:03:73:41:dc:68
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   25.579450][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPOFFER of 192.168.1.135 from 192.168.1.1
DHCPREQUEST for 192.168.1.135 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.135 from 192.168.1.1
bound to 192.168.1.135 -- renewal in 35716 seconds.
[   31.673777][ T1128] NET: Registered protocol family 10
[   31.680095][ T1128] Segment Routing with IPv6
done.
[ 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...
1338 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1365 (klogd)
. ok
[....] Starting system message bus: dbus[   35.671651][ T1395] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   35.695240][ T1395] random: dbus-daemon: uninitialized urandom read (12 bytes read)
. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[   35.822485][ T1418] random: avahi-daemon: uninitialized urandom read (4 bytes read)
. ok
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[....] Starting OpenBSD Secure Shell server: sshd[   40.328610][    C0] random: crng init done
[   40.332736][    C0] random: 1 urandom warning(s) missed due to ratelimiting
. ok
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 m300-2 ttyS0

m300-2 login:

Preceding this, there was a segmentation fault while trying to edit the .profile file using nano. The system kept running and seemed OK, but nano always produced a segmentation fault. Did a reboot from the command line is serial and got the above bootlog.

Re: Errors in Boot Log for Dell M300

$
0
0
Hi Mike,

> Preceding this, there was a segmentation fault
> while trying to edit the .profile file using nano.

Is this while in the SSH session?

> The system kept running and seemed OK, but nano
> always produced a segmentation fault. Did a
> reboot from the command line is serial and got the
> above bootlog.

Shutdown and if you could, bring the rootfs to another Linux box and run e2fsck to check for file system error.

Or if the rootfs is on HDD, you could boot with USB on this box, and run e2fsck from there. I recalled that I have not been clear about booting USB rootfs while there is a HDD rootfs inside. So that you might need to do this in serial console. Let me know if you need to do this (cannot check the rootfs on another Linux box).

If your e2fsck shows no errors on file system, I'll need to look at my M300 with serial console to verify whether it is a general problem, or just your box.

Re: Errors in Boot Log for Dell M300

$
0
0
You can test to see if your serial console causing problem. Shutdown, disconnect serial console and power up. SSH in and see if there is error in dmesg.

Re: Errors in Boot Log for Dell M300

$
0
0
OK, I can do all. Will be tomorrow. Note that the boot process does a fsck and finds it clean. The nano seg fault was in SSH, I'm pretty sure.

Interesting thought on the serial, I've been running that for testing. My other M300 is ssh only and has been good.

Re: Linux Kernel 5.5.3 MVEBU package and Debian armhf rootfs

$
0
0
Kernel linux-5.5.3-mvebu-tld-1 package has been uploaded. Please see 1st post for download link.

Re: ix2-200 boots USB but not HDD

$
0
0
@bodhi I've given up on my install with RAID for the time being. I formatted both drives and followed your technique to install buster on ext3 partition on one drive. Can you advise how I should now configure the boot parameters to make this work? Presently it fails to find rootfs and kicks me to initramfs prompt. Also should the rootfs be in first or second drive slot?

Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10'
Marvell>> setenv bootargs $(bootargs_console)
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 36
Current fan speed: 0

Hit any key to stop autoboot:  0
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1f00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
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;
ethmtu=1500
eth1addr=00:50:43:dd:0d:04
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
FanHysteresis=2
FanTempStart=58
uboot_start=0x0
uboot_size=0xc0000
env_start=0xa0000
env_size=0x20000
kernel_start=0x100000
kernel_size=0x300000
initrd_size=0x300000
flash_load=run make_boot_args load1 load2 boot
load1=nand read.e 0x2000000 $(kernel_start) $(kernel_size)
load2=nand read.e 0x4500000 $(initrd_start) $(initrd_size)
boot=bootm 0x2000000 0x4500000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)128m@0x0(flash);
iomega=123
ethaddr=AA:00:00:00:00:01
arcNumber=1682
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd)
partition=nand0,0
mtddevnum=0
mtddevname=uboot
bootcmd=setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x02100000
initrd_start=0x540000
bootargs_console=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
bootargs=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
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
hddPowerCtrl=no
enaAutoRecovery=yes
ethact=egiga1

Environment size: 2623/16380 bytes
Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x1000000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-07   1:10:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-6-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
[    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: 244032K/262144K available (3919K kernel code, 361K rwdata, 1444K rodata, 278K init, 289K bss, 18112K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05451c4   (5365 kB)
[    0.000000]       .init : 0xc0546000 - 0xc058b8dc   ( 279 kB)
[    0.000000]       .data : 0xc058c000 - 0xc05e6720   ( 362 kB)
[    0.000000]        .bss : 0xc05e6720 - 0xc062eb54   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[   14.219179] Console: colour dummy device 80x30
[   14.219210] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[   14.242915] pid_max: default: 32768 minimum: 301
[   14.243042] Security Framework initialized
[   14.243099] Yama: disabled by default; enable with sysctl kernel.yama.*
[   14.243193] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   14.243215] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   14.244175] Initializing cgroup subsys memory
[   14.244225] Initializing cgroup subsys devices
[   14.244292] Initializing cgroup subsys freezer
[   14.244326] Initializing cgroup subsys net_cls
[   14.244380] Initializing cgroup subsys blkio
[   14.244423] Initializing cgroup subsys perf_event
[   14.244450] Initializing cgroup subsys net_prio
[   14.244557] CPU: Testing write buffer coherency: ok
[   14.244672] ftrace: allocating 16386 entries in 33 pages
[   14.273386] Setting up static identity map for 0x3b4f90 - 0x3b4fe8
[   14.277474] devtmpfs: initialized
[   14.280540] futex hash table entries: 256 (order: -1, 3072 bytes)
[   14.281202] pinctrl core: initialized pinctrl subsystem
[   14.281780] regulator-dummy: no parameters
[   14.282344] NET: Registered protocol family 16
[   14.282806] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   14.284329] cpuidle: using governor ladder
[   14.284358] cpuidle: using governor menu
[   14.284462] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   14.284486] Feroceon L2: Enabling L2
[   14.284528] Feroceon L2: Cache support initialised.
[   14.287034] Kirkwood PCIe port 0: link down
[   14.287047] PCI: bus0 uses PCIe port 0
[   14.287321] PCI host bridge to bus 0000:00
[   14.287344] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   14.287359] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   14.287372] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   14.287772] PCI: bus0: Fast back to back transfers disabled
[   14.293210] Switched to clocksource orion_clocksource
[   14.319815] NET: Registered protocol family 2
[   14.321017] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   14.321061] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   14.321096] TCP: Hash tables configured (established 2048 bind 2048)
[   14.321167] TCP: reno registered
[   14.321181] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   14.321248] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   14.321472] NET: Registered protocol family 1
[   14.321836] Unpacking initramfs...
[   15.311521] Freeing initrd memory: 9480K (c2101000 - c2a43000)
[   15.313195] audit: initializing netlink subsys (disabled)
[   15.313326] audit: type=2000 audit(1.088:1): initialized
[   15.314340] zbud: loaded
[   15.314622] VFS: Disk quotas dquot_6.5.2
[   15.314680] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   15.314799] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   15.315060] msgmni has been set to 495
[   15.317461] alg: No test for stdrng (krng)
[   15.317604] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   15.317842] io scheduler noop registered
[   15.318027] io scheduler cfq registered (default)
[   15.318751] mv_xor mv_xor.0: Marvell shared XOR driver
[   15.337341] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   15.357336] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   15.357557] mv_xor mv_xor.1: Marvell shared XOR driver
[   15.377335] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   15.397335] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   15.397864] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   15.399080] console [ttyS0] disabled
[   15.419091] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   15.944916] console [ttyS0] enabled
[   15.950196] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[   15.956606] nand: Hynix NAND 32MiB 3,3V 8-bit
[   15.960998] nand: 32MiB, SLC, page size: 512, OOB size: 16
[   15.966525] Scanning device for bad blocks
[   16.068552] Bad eraseblock 895 at 0x000000dfc000
[   16.152626] Bad eraseblock 1622 at 0x000001958000
[   16.203848] 4 cmdlinepart partitions found on MTD device orion_nand
[   16.210157] Creating 4 MTD partitions on "orion_nand":
[   16.215346] 0x000000000000-0x000000100000 : "uboot"
[   16.221720] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   16.228378] 0x000000100000-0x000000400000 : "uImage"
[   16.234790] 0x000001000000-0x000002000000 : "uInitrd"
[   16.241925] mousedev: PS/2 mouse device common for all mice
[   16.248124] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   16.254140] i2c /dev entries driver
[   16.258122] ledtrig-cpu: registered to indicate activity on CPUs
[   16.264508] TCP: cubic registered
[   16.267876] NET: Registered protocol family 17
[   16.273255] registered taskstats version 1
[   16.278724] rtc-mv rtc-mv: setting system clock to 2020-02-14 20:28:59 UTC (1581712139)
[   16.288820] Freeing unused kernel memory: 276K (c0546000 - c058b000)
Loading, please wait...
Starting version 241
[   16.445410] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.468307] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.493545] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.506652] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.682569] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.696390] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.705742] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.816153] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.833587] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.854042] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   30.008839] random: nonblocking pool is initialized
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 32
Current fan speed: 0

Hit any key to stop autoboot:  0
Marvell>> mtdparts

device nand0 <orion_nand>, # parts = 4
 #: name                        size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      1
 1: uboot_env           0x00020000      0x000a0000      0
 2: uImage              0x00300000      0x00100000      0
 3: uInitrd             0x01000000      0x01000000      0

active partition: nand0,0 - (uboot) 0x00100000 @ 0x00000000

defaults:
mtdids  : <NULL>
mtdparts: <NULL>
Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
  Device 0 @ 0 0:
Model: WDC WD20EARX-00PASB0                     Firm: 51.0AB51 Ser#:      WD-WCAZAD866755
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
[0 1 0]: Enable DMA mode
  Device 1 @ 0 1:
Model: WDC WD20EARX-00PASB0                     Firm: 51.0AB51 Ser#:      WD-WMAZA8269202
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide part

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

Partition     Start Sector     Num Sectors     Type
    1                    1              -1      ee


Partition Map for IDE device 1  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1                 2048      -387940176      83
Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=LABEL=rootfs rootdelay=10'
Marvell>> setenv bootargs $(bootargs_console)
Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x1000000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-07   1:10:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-6-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=LABEL=rootfs rootdelay=10
[    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: 244032K/262144K available (3919K kernel code, 361K rwdata, 1444K rodata, 278K init, 289K bss, 18112K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05451c4   (5365 kB)
[    0.000000]       .init : 0xc0546000 - 0xc058b8dc   ( 279 kB)
[    0.000000]       .data : 0xc058c000 - 0xc05e6720   ( 362 kB)
[    0.000000]        .bss : 0xc05e6720 - 0xc062eb54   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    1.577748] Console: colour dummy device 80x30
[    1.577780] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[    1.601485] pid_max: default: 32768 minimum: 301
[    1.601614] Security Framework initialized
[    1.601672] Yama: disabled by default; enable with sysctl kernel.yama.*
[    1.601764] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.601785] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.602750] Initializing cgroup subsys memory
[    1.602799] Initializing cgroup subsys devices
[    1.602866] Initializing cgroup subsys freezer
[    1.602899] Initializing cgroup subsys net_cls
[    1.602951] Initializing cgroup subsys blkio
[    1.602998] Initializing cgroup subsys perf_event
[    1.603025] Initializing cgroup subsys net_prio
[    1.603134] CPU: Testing write buffer coherency: ok
[    1.603249] ftrace: allocating 16386 entries in 33 pages
[    1.631983] Setting up static identity map for 0x3b4f90 - 0x3b4fe8
[    1.636073] devtmpfs: initialized
[    1.639142] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.639800] pinctrl core: initialized pinctrl subsystem
[    1.640370] regulator-dummy: no parameters
[    1.640935] NET: Registered protocol family 16
[    1.641395] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.642915] cpuidle: using governor ladder
[    1.642946] cpuidle: using governor menu
[    1.643052] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    1.643076] Feroceon L2: Enabling L2
[    1.643118] Feroceon L2: Cache support initialised.
[    1.645623] Kirkwood PCIe port 0: link down
[    1.645635] PCI: bus0 uses PCIe port 0
[    1.645910] PCI host bridge to bus 0000:00
[    1.645932] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.645946] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[    1.645959] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.646354] PCI: bus0: Fast back to back transfers disabled
[    1.651780] Switched to clocksource orion_clocksource
[    1.678397] NET: Registered protocol family 2
[    1.679591] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    1.679635] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    1.679671] TCP: Hash tables configured (established 2048 bind 2048)
[    1.679742] TCP: reno registered
[    1.679757] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.679823] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.680049] NET: Registered protocol family 1
[    1.680416] Unpacking initramfs...
[    2.670196] Freeing initrd memory: 9480K (c2101000 - c2a43000)
[    2.671910] audit: initializing netlink subsys (disabled)
[    2.671998] audit: type=2000 audit(1.088:1): initialized
[    2.673015] zbud: loaded
[    2.673298] VFS: Disk quotas dquot_6.5.2
[    2.673356] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.673474] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.673732] msgmni has been set to 495
[    2.676136] alg: No test for stdrng (krng)
[    2.676277] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    2.676514] io scheduler noop registered
[    2.676700] io scheduler cfq registered (default)
[    2.677426] mv_xor mv_xor.0: Marvell shared XOR driver
[    2.695913] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    2.715906] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    2.716128] mv_xor mv_xor.1: Marvell shared XOR driver
[    2.735906] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    2.755905] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    2.756432] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    2.757644] console [ttyS0] disabled
[    2.777654] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    3.303366] console [ttyS0] enabled
[    3.308635] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[    3.315044] nand: Hynix NAND 32MiB 3,3V 8-bit
[    3.319430] nand: 32MiB, SLC, page size: 512, OOB size: 16
[    3.324957] Scanning device for bad blocks
[    3.426983] Bad eraseblock 895 at 0x000000dfc000
[    3.511061] Bad eraseblock 1622 at 0x000001958000
[    3.562272] 4 cmdlinepart partitions found on MTD device orion_nand
[    3.568580] Creating 4 MTD partitions on "orion_nand":
[    3.573769] 0x000000000000-0x000000100000 : "uboot"
[    3.580149] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[    3.586806] 0x000000100000-0x000000400000 : "uImage"
[    3.593216] 0x000000540000-0x000001540000 : "uInitrd"
[    3.600360] mousedev: PS/2 mouse device common for all mice
[    3.606565] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    3.612582] i2c /dev entries driver
[    3.616560] ledtrig-cpu: registered to indicate activity on CPUs
[    3.622945] TCP: cubic registered
[    3.626304] NET: Registered protocol family 17
[    3.631656] registered taskstats version 1
[    3.637116] rtc-mv rtc-mv: setting system clock to 2020-02-14 20:45:25 UTC (1581713125)
[    3.647218] Freeing unused kernel memory: 276K (c0546000 - c058b000)
Loading, please wait...
Starting version 241
[    3.804298] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    3.826868] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    3.852119] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    3.865494] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.040516] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.050866] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.060197] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.169697] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.188168] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.208096] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   17.362666] random: nonblocking pool is initialized
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
(initramfs)
(initramfs)
(initramfs)
(initramfs)

Re: Errors in Boot Log for Dell M300

$
0
0
I think this problem started after I put the second partition of the SSD into the fstab. I created the file system on this partition using the -j parameter on mke2fs. But, for some reason I called the second partition ext4 in fstab.
root@m300-2:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
LABEL=sata_rootfs    /               ext3    noatime,errors=remount-ro 0 1
LABEL=data	/mnt/data		ext4 	defaults,noatime  0	2
tmpfs          /tmp            tmpfs   defaults          0       0

Here's the SSD setup:
root@m300-2:~# blkid
/dev/sda1: LABEL="sata_rootfs" UUID="2b4c98d6-a7fd-4274-a336-749fb9223cf2" TYPE="ext3" PARTUUID="0a679d7f-01"
/dev/sda2: LABEL="data" UUID="75e9b459-2b7a-4f8c-a06a-854d0c8a8cef" TYPE="ext3" PARTUUID="0a679d7f-02"
Note that blkid thinks it is ext3.

df thinks it is ext4, but is that because I called it ext4 in fstab? Clearly, I'm not clear if -j only means ext3.
root@m300-2:~# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  876M     0  876M   0% /dev
tmpfs          tmpfs     177M   72K  177M   1% /run
/dev/sda1      ext3      3.9G  1.1G  2.7G  29% /
tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs          tmpfs     353M     0  353M   0% /dev/shm
/dev/sda2      ext4       11G   28M   11G   1% /mnt/data
tmpfs          tmpfs     881M     0  881M   0% /tmp

I'll set fstab to ext3, reboot, and do your suggested tests.

Update: Booted M300 from USB with serial connected and from SSH, ran e2fsck, both partitions clean:
root@M300-usb:~# e2fsck /dev/sda1
e2fsck 1.44.5 (15-Dec-2018)
sata_rootfs: clean, 40785/262144 files, 303311/1048576 blocks
root@M300-usb:~# e2fsck /dev/sda2
e2fsck 1.44.5 (15-Dec-2018)
data: clean, 11/715264 files, 68287/2860800 blocks
root@M300-usb:~# blkid
/dev/sda1: LABEL="sata_rootfs" UUID="2b4c98d6-a7fd-4274-a336-749fb9223cf2" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="0a679d7f-01"
/dev/sda2: LABEL="data" UUID="75e9b459-2b7a-4f8c-a06a-854d0c8a8cef" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="0a679d7f-02"
/dev/sdb1: LABEL="rootfs" UUID="d7f52bc6-463d-4440-a877-1f4eb0bbbdef" TYPE="ext3" PARTUUID="10c19223-01"

My environments are setup to check USB for a rootfs label, if found, boot from USB. If not found, check SATA for sata-rootfs and if found boot from there. The hostname of the USB is M300-usb to prevent confusion.

I'll leave things running and try some stuff to see if anything happens.

Re: Errors in Boot Log for Dell M300

$
0
0
Booted from SSD with "corrected" fstab (sda2 set to ext3) and got this from serial:
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   21.498134][  T402] 8<--- cut here ---
[   21.502146][  T402] Unable to handle kernel paging request at virtual address 00020000
[   21.510213][  T402] pgd = (ptrval)
[   21.513631][  T402] [00020000] *pgd=00000000
[   21.517925][  T402] Internal error: Oops: 5 [#1] PREEMPT ARM
[   21.523607][  T402] Modules linked in:
[   21.527370][  T402] CPU: 0 PID: 402 Comm: udevadm Not tainted 5.5.1-kirkwood-tld-1 #1.0
[   21.535405][  T402] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   21.542397][  T402] PC is at kernfs_refresh_inode+0x30/0x124
[   21.548076][  T402] LR is at kernfs_iop_getattr+0x2c/0x4c
[   21.553490][  T402] pc : [<802e3454>]    lr : [<802e3574>]    psr: 20000013
[   21.560475][  T402] sp : eed59e98  ip : 00000000  fp : 004896b8
[   21.566413][  T402] r10: 00000000  r9 : eed58000  r8 : ecf31f78
[   21.572352][  T402] r7 : 81004228  r6 : ee5ee780  r5 : 00020000  r4 : ee5ee780
[   21.579598][  T402] r3 : 0000a1ff  r2 : 8c4cbd90  r1 : ee5ee780  r0 : ecf31f78
[   21.586845][  T402] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   21.594701][  T402] Control: 0005397f  Table: 6edbc000  DAC: 00000051
[   21.601163][  T402] Process udevadm (pid: 402, stack limit = 0x(ptrval))
[   21.607886][  T402] Stack: (0xeed59e98 to 0xeed5a000)
[   21.612953][  T402] 9e80:                                                       000041ed eef57270
[   21.621858][  T402] 9ea0: ee5d5bb0 8c4cbd90 00000000 00000005 81004228 eed59f78 81004228 8c4cbd90
[   21.630771][  T402] 9ec0: ee5ee780 810307ac eed59f08 ecf31f78 ee0e4360 802e3574 00000000 ee0e4360
[   21.639683][  T402] 9ee0: eed59f08 000007ff ee0e4360 802670b0 81004228 7ec1a8d8 00872a31 000000c5
[   21.648594][  T402] 9f00: 80101208 802676dc 000007ff 00000000 00000000 00000000 00000000 00000000
[   21.657505][  T402] 9f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   21.666417][  T402] 9f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   21.675329][  T402] 9f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   21.684241][  T402] 9f80: 00000000 00000000 00000000 00000000 00000006 8c4cbd90 00872a31 00872a30
[   21.693154][  T402] 9fa0: 00872914 80101000 00872a30 00872914 00000005 7ec1a8d8 7ec1a8d8 9b7a0800
[   21.702065][  T402] 9fc0: 00872a30 00872914 00872a31 000000c5 00000006 00000005 004896c8 004896b8
[   21.710976][  T402] 9fe0: 004b6cc0 7ec1a8a0 00448198 76e457fc 20000010 00000005 00000000 00000000
[   21.719898][  T402] [<802e3454>] (kernfs_refresh_inode) from [<802e3574>] (kernfs_iop_getattr+0x2c/0x4c)
[   21.729422][  T402] [<802e3574>] (kernfs_iop_getattr) from [<802670b0>] (vfs_statx_fd+0x44/0x60)
[   21.738246][  T402] [<802670b0>] (vfs_statx_fd) from [<802676dc>] (__do_sys_fstat64+0x28/0x60)
[   21.746896][  T402] [<802676dc>] (__do_sys_fstat64) from [<80101000>] (ret_fast_syscall+0x0/0x50)
[   21.755803][  T402] Exception stack(0xeed59fa8 to 0xeed59ff0)
[   21.761569][  T402] 9fa0:                   00872a30 00872914 00000005 7ec1a8d8 7ec1a8d8 9b7a0800
[   21.770482][  T402] 9fc0: 00872a30 00872914 00872a31 000000c5 00000006 00000005 004896c8 004896b8
[   21.779392][  T402] 9fe0: 004b6cc0 7ec1a8a0 00448198 76e457fc
[   21.785160][  T402] Code: e1d035b2 e1a06001 e1c130b0 0a000028 (e5953000)
[   21.792004][  T402] ---[ end trace 5831178c34877c62 ]---
Segmentation fault
failed.
[....] Waiting for /dev to be fully populated...[   47.848617][  T130] 8<--- cut here ---
[   47.852393][  T130] Unable to handle kernel paging request at virtual address 00002008
[   47.860366][  T130] pgd = (ptrval)
[   47.863780][  T130] [00002008] *pgd=00000000
[   47.868073][  T130] Internal error: Oops: 5 [#2] PREEMPT ARM
[   47.873756][  T130] Modules linked in:
[   47.877518][  T130] CPU: 0 PID: 130 Comm: kworker/0:2 Tainted: G      D           5.5.1-kirkwood-tld-1 #1.0
[   47.887297][  T130] Hardware name: Marvell Kirkwood (Flattened Device Tree)

Disconnected serial and rebooted OK. dmesg attached for your review.

Re: ix2-200 boots USB but not HDD

$
0
0
Quote

@bodhi I've given up on my install with RAID for the time being. I formatted both drives and followed your technique to install buster on ext3 partition on one drive. Can you advise how I should now configure the boot parameters to make this work?

Your boot parameters are fine.

Quote

Presently it fails to find rootfs and kicks me to initramfs prompt. Also should the rootfs be in first or second drive slot?

It could be on any HDD drive slot.

Note your bootargs:


Quote

Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10'


The reason it could not find the rootfs to mount is your HDD rootfs must have not been labeled as rootfs. So mount the HDD on another Linux box and assuming your HDD rootfs partition is assign /dev/sda1.

e2label /dev/sda1

if it did not show rootfs then
e2label /dev/sda1 rootfs
sync

And then bring it back to the ix2 and boot.

====

Currently you boot the mainline kernel kernel Linux-3.16.0-6, but using my initramfs-5.2.9-kirkwood-tld-1 build.

This set up should be only a test.Once it works, it needs to be consistent. You should either reinstall mainline kernel to get uImage and uInitrd from there, or install my kernel build.

Re: Errors in Boot Log for Dell M300

$
0
0
Mike,

Quote

Disconnected serial and rebooted OK. dmesg attached for your review.

OK, at this point, please get the output of
free -h
swapon

Re: Errors in Boot Log for Dell M300

$
0
0
As requested:
root@m300-2:~# free -h 
              total        used        free      shared  buff/cache   available
Mem:          1.7Gi        16Mi       1.7Gi       0.0Ki        45Mi       1.7Gi
Swap:            0B          0B          0B
root@m300-2:~# swapon
root@m300-2:~# 


Re: Errors in Boot Log for Dell M300

$
0
0
Mike,

You are running without swap. That could be bad in a lot of ways. This box has a lot of RAM, it would not need swap normally. But as usual, swap space should be always allocated (the Linux kernel memory management works better when there is swap space).

In my basic rootfs, there is no pre-allocate swap partition or file. I let it up to the users to decide whether to use swap file or partition. And I'd recommend swap file (it is much more flexible and there is virtually no difference in performance from swap partition).

Here is an example to create a 1GB swap file at root directory (use whatever you like in this box, I would use at least 1GB swap file on the HDD/SSD rootfs).

dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576

And then modify fstab:

cat /etc/fstab | grep swap
/swapfile1     swap            swap    defaults          0       0

And reboot. Now you should have a swap space of 1GB early on during boot.

See if it helps with this probelm.

Re: Errors in Boot Log for Dell M300

$
0
0
No joy getting the swap file setup:
root@m300-2:~# dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 68.0028 s, 15.8 MB/s
root@m300-2:~# swapon /swapfile1
swapon: /swapfile1: insecure permissions 0644, 0600 suggested.
swapon: /swapfile1: read swap header failed

Need to do:
mkswap /swapfile1
then swapon or reboot to get it to work.

Update: dmesg from reboot:
[   24.382880] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   25.690381] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[   25.709724] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[   26.688594] Adding 1048572k swap on /mnt/data/swapfile1.  Priority:-2 extents:14 across:1125440k SSFS
Is that what should be expected? sda1 is 4GB for the rootfs, sda2 is the remainder of the 16GB SSD.

Re: Debian on Dell Kace M300

$
0
0
Thanks for the info mikeh49. I bought an Apple USB-C dongle/DAC and a two pack of USB-C to USB-A adapters from Amazon based on this review and some other positive comments about the Apple dongle:

https://www.audiosciencereview.com/forum/index.php?threads/review-apple-vs-google-usb-c-headphone-adapters.5541/

It's the first Apple product I've ever purchased and I did it reluctantly but I figure it was just a $8 dongle so it didn't really count, of course my daughter said that full Apple conversion is now required (not likely!). I can confirm it works on my Fedora laptop and it looks like it is recognized correctly on the M300 but I don't have alsa or any of the other necessary packages built for Alpine yet so I haven't been able to test it.

I ran into an issue with Alpine's package manager that you can read about here:
https://lists.alpinelinux.org/~alpine/apk-tools/%3CCAGP1gyMH+GoXnGd3YQjg4piFYpMpNiHkC7PDO7BoHTSbYsP1Ug%40mail.gmail.com%3E

Came down to an issue with memory alignment that I never would have figured out on my own. I did find a couple references to it here on this site (after I knew what to search for) - this must be something that the Debian port accounts for in their configuration?

Would one of you post the results of cat /proc/cpu/alignment so I can configure Alpine the same way?

Thanks!

Re: ix2-200 boots USB but not HDD

$
0
0
@bodhi Indeed I neglected to label the rootfs correctly, however now that I've done that I still cannot boot the HDD?!

user@debian:~$ sudo e2label /dev/sdb1

user@debian:~$ sudo e2label /dev/sdb1 rootfs
user@debian:~$ sync
user@debian:~$ sudo e2label /dev/sdb1
rootfs

ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!

Re: Debian on Dell Kace M300

$
0
0
Not sure this is much help:
root@m300-2:~# cat /proc/cpu/alignment
User:		0
System:		0 (0x0)
Skipped:	0
Half:		0
Word:		0
DWord:		0
Multi:		0
User faults:	0 (ignored)
root@m300-2:~#
I think you need Bohdi's brain for this.

I didn't think Apple sold anything for $8, they must have misplaced the decimal point.
Viewing all 26691 articles
Browse latest View live