WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: CF HDD not visible after boot  (Read 7044 times)

Offline Blupanthr2

  • Newbie
  • *
  • Posts: 3
CF HDD not visible after boot
« on: March 26, 2017, 02:56:46 AM »
I installed TCL on a Soekris Net 4501 to use as a small VPN router.  For those not familiar, the Soekris has no Video out, this one has no USB either.  It's only storage / boot is net booting, or internal Compact Flash mounted as sda, or hda depending on the OS.  I custom coded core.gz to include Serial console output and loaded it onto the CF card.  I can boot to it using the CF, but the OS cannot see the CF ('fdisk -l' shows nothing)  is there something I need to load to show it, or What do I need to to to save persistent packages to the CF?  Below is my dmesg on boot.

Any and all help is appreciated.

Code: [Select]
tc@box:~$ dmesg
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.2.9-tinycore (tc@box) (gcc version 5.2.0 (GCC) ) #1999 SMP Mon J                                                                                                                                                             an 18 19:42:12 UTC 2016
x86/fpu: Legacy x87 FPU detected.
x86/fpu: Using 'lazy' FPU context switches.
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x0000000003ffffff] usable
BIOS-e820: [mem 0x00000000fff00000-0x00000000ffffffff] reserved
Notice: NX (Execute Disable) protection missing in CPU!
DMI not present or invalid.
e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
e820: remove [mem 0x000a0000-0x000fffff] usable
e820: last_pfn = 0x4000 max_arch_pfn = 0x100000
MTRR: Disabled
initial memory mapped: [mem 0x00000000-0x00bfffff]
Base memory trampoline at [c009b000] 9b000 size 16384
init_memory_mapping: [mem 0x00000000-0x000fffff]
 [mem 0x00000000-0x000fffff] page 4k
init_memory_mapping: [mem 0x03400000-0x037fffff]
 [mem 0x03400000-0x037fffff] page 4k
BRK [0x007d8000, 0x007d8fff] PGTABLE
init_memory_mapping: [mem 0x00100000-0x033fffff]
 [mem 0x00100000-0x033fffff] page 4k
init_memory_mapping: [mem 0x03800000-0x03ffffff]
 [mem 0x03800000-0x03ffffff] page 4k
BRK [0x007d9000, 0x007d9fff] PGTABLE
BRK [0x007da000, 0x007dafff] PGTABLE
RAMDISK: [mem 0x03920000-0x03ffffff]
ACPI: Early table checksum verification disabled
ACPI BIOS Error (bug): A valid RSDP was not found (20150619/tbxfroot-243)
0MB HIGHMEM available.
64MB LOWMEM available.
  mapped low ram: 0 - 04000000
  low ram: 0 - 04000000
BRK [0x007db000, 0x007dbfff] PGTABLE
Zone ranges:
  DMA      [mem 0x0000000000001000-0x0000000000ffffff]
  Normal   [mem 0x0000000001000000-0x0000000003ffffff]
  HighMem  empty
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000001000-0x000000000009efff]
  node   0: [mem 0x0000000000100000-0x0000000003ffffff]
Initmem setup node 0 [mem 0x0000000000001000-0x0000000003ffffff]
On node 0 totalpages: 16286
free_area_init_node: node 0, pgdat c06c8f40, node_mem_map c38a0020
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 3998 pages, LIFO batch:0
  Normal zone: 96 pages used for memmap
  Normal zone: 12288 pages, LIFO batch:1
Using APIC driver default
smpboot: Allowing 1 CPUs, 0 hotplug CPUs
No local APIC present or hardware disabled
APIC: disable apic facility
APIC: switched to apic NOOP
PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
e820: [mem 0x04000000-0xffefffff] available for PCI devices
Booting paravirtualized kernel on bare hardware
clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_                                                                                                                                                             ns: 6370452778343963 ns
setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 17 pages/cpu @c388c000 s38604 r0 d31028 u69632
pcpu-alloc: s38604 r0 d31028 u69632 alloc=17*4096
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16158
Kernel command line: BOOT_IMAGE=/boot/vmlinuz console=ttyS0,19200n8 initrd=/boot                                                                                                                                                             /core.gz
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Initializing CPU#0
Initializing HighMem for node 0 (00000000:00000000)
Memory: 50320K/65144K available (4358K kernel code, 405K rwdata, 1192K rodata, 5                                                                                                                                                             44K init, 468K bss, 14824K reserved, 0K cma-reserved, 0K highmem)
virtual kernel memory layout:
    fixmap  : 0xfff16000 - 0xfffff000   ( 932 kB)
    pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
    vmalloc : 0xc4800000 - 0xff7fe000   ( 943 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
      .init : 0xc06d4000 - 0xc075c000   ( 544 kB)
      .data : 0xc0541c82 - 0xc06d25c0   (1602 kB)
      .text : 0xc0100000 - 0xc0541c82   (4359 kB)
Checking if this processor honours the WP bit even in supervisor mode...Ok.
Hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
        RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
NR_IRQS:2304 nr_irqs:32 16
CPU 0 irqstacks, hard=c3006000 soft=c3008000
WARNING: Persistent clock returned invalid value!
         Check your CMOS/BIOS settings.
Console: colour dummy device 80x25
console [ttyS0] enabled
Calibrating delay loop... 63.40 BogoMIPS (lpj=106240)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Initializing cgroup subsys blkio
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys perf_event
Initializing cgroup subsys net_prio
Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
Freeing SMP alternatives memory: 16K (c075c000 - c0760000)
smpboot: weird, boot CPU (#0) not listed by the BIOS
smpboot: SMP motherboard not detected
smpboot: SMP disabled
smpboot: Local APIC not detected. Using dummy APIC emulation.
Performance Events: no PMU driver, software events only.
x86: Booted up 1 node, 1 CPUs
smpboot: Total of 1 processors activated (63.40 BogoMIPS)
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
cpuidle: using governor ladder
cpuidle: using governor menu
clocksource: pit: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1601818034827 ns
PCI: PCI BIOS revision 2.01 entry at 0xf7861, last bus=0
PCI: Using configuration type 1 for base access
ACPI: Interpreter disabled.
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
dmi: Firmware registration failed.
PCI: Probing PCI hardware
PCI: root bus 00: using default resources
PCI: Probing PCI hardware (bus 00)
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:00.0: [1022:3000] type 00 class 0x060000
pci 0000:00:10.0: [8086:4220] type 00 class 0x028000
pci 0000:00:10.0: reg 0x10: [mem 0xa0000000-0xa0000fff]
pci 0000:00:10.0: PME# supported from D0 D3hot D3cold
pci 0000:00:14.0: [100b:0020] type 00 class 0x020000
pci 0000:00:14.0: reg 0x10: [io  0xe000-0xe0ff]
pci 0000:00:14.0: reg 0x14: [mem 0xa0001000-0xa0001fff]
pci 0000:00:14.0: reg 0x30: [mem 0x3f000000-0x3f00ffff pref]
pci 0000:00:14.0: supports D1 D2
pci 0000:00:14.0: PME# supported from D0 D1 D2 D3hot
pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
PCI: pci_cache_line_size set to 32 bytes
e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
clocksource: Switched to clocksource pit
pnp: PnP ACPI: disabled
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: PnP BIOS support was not detected.
pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 64 bytes, default 32
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 7040K (c3920000 - c4000000)
platform rtc_cmos: registered platform RTC device (no PNP device found)
apm: BIOS not found.
futex hash table entries: 256 (order: 2, 16384 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
fuse init (API version 7.23)
NET: Registered protocol family 38
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
isapnp: Scanning for PnP cards...
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
Non-volatile memory driver v1.3
Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds, margin is 60 seconds).
brd: module loaded
mtip32xx Version 1.3.1
zram: Added device: zram0
VMware PVSCSI driver - version 1.0.5.0-k
isapnp: No Plug & Play device found
scsi host0: pata_legacy
ata1: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14
scsi host1: pata_legacy
ata2: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15
libphy: Fixed MDIO Bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver uas
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums_eneub6250
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-onetouch
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
i8042: PNP: No PS/2 controller found. Probing ports directly.
i8042: Can't read CTR while initializing i8042
i8042: probe of i8042 failed with error -5
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver appletouch
usbcore: registered new interface driver bcm5974
usbcore: registered new interface driver synaptics_usb
rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
intel_powerclamp: Intel powerclamp does not run on family 4 model 15
softdog: Software Watchdog Timer: 0.08 initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
ledtrig-cpu: registered to indicate activity on CPUs
dmi-sysfs: dmi entry is absent.
Driver for HIFN 795x crypto accelerator chip has been successfully registered.
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Netfilter messages via NETLINK v0.30.
nfnl_acct: registering with nfnetlink.
ipip: IPv4 over IPv4 tunneling driver
IPv4 over IPsec tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
Key type dns_resolver registered
mce: Unable to init device /dev/mcelog (rc: -5)
Using IPI No-Shortcut mode
registered taskstats version 1
rtc_cmos rtc_cmos: setting system clock to 1980-01-02 05:58:11 UTC (315640691)
Freeing unused kernel memory: 544K (c06d4000 - c075c000)
Write protecting the kernel text: 4360k
Write protecting the kernel read-only data: 1196k
loop: module loaded
zram0: detected capacity change from 0 to 9748480
random: mkswap urandom read with 78 bits of entropy available
Adding 9516k swap on /dev/zram0.  Priority:-1 extents:1 across:9516k SSFS
input: PC Speaker as /devices/platform/pcspkr/input/input0
natsemi dp8381x driver, version 2.1, Sept 11, 2006
  originally by Donald Becker <becker@scyld.com>
  2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
natsemi eth0: NatSemi DP8381[56] at 0xa0001000 (0000:00:14.0), 00:00:24:ca:e2:f0, IRQ 11, port TP.
microcode: AMD CPU family 0x4 not supported
squashfs: version 4.0 (2009/01/31) Phillip Lougher
random: nonblocking pool is initialized
eth0: DSPCFG accepted after 0 usec.
eth0: link up.
eth0: Setting full-duplex based on negotiated link capability.
tc@box:~$
-Blu

Offline polikuo

  • Hero Member
  • *****
  • Posts: 723
Re: CF HDD not visible after boot
« Reply #1 on: March 26, 2017, 04:28:30 AM »
Hi !
I'm not an expert, but you can try usbutils usb-serial-KERNEL pci-utils
I use them for my laptop's built-in SD card reader (Not CF card, though)

Offline Blupanthr2

  • Newbie
  • *
  • Posts: 3
Re: CF HDD not visible after boot
« Reply #2 on: March 26, 2017, 05:20:26 AM »
I'll give the pci-utils a shot, but the socket is not USB based;  It is seen directly as an HDD.

Thanks.
-Blu

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: CF HDD not visible after boot
« Reply #3 on: March 26, 2017, 09:30:11 AM »
IRQ's 14 and 15 are legacy IDE primary and secondary ports. Have you tried loading any PATA or IDE modules?

Offline Blupanthr2

  • Newbie
  • *
  • Posts: 3
Re: CF HDD not visible after boot
« Reply #4 on: March 26, 2017, 10:34:59 PM »
@andyj
That sounds like it might do the trick, I have searched the tcz's at 'http://www.tinycorelinux.net/7.x/x86/tcz/'  But I am not sure which ones contain the PATA / IDE modules.  Would you happen to have an example?

Thank you.
-Blu

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: CF HDD not visible after boot
« Reply #5 on: March 26, 2017, 11:02:40 PM »
Hi Blupanthr2
Maybe there's something useful under  /lib/modules/kernel/drivers/

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: CF HDD not visible after boot
« Reply #6 on: March 26, 2017, 11:38:27 PM »
The system boots from the CF card so electrically it works, and the IDE ports are somewhat detected:

Code: [Select]
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: PnP BIOS support was not detected.
...
scsi host0: pata_legacy
ata1: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14
scsi host1: pata_legacy
ata2: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15

It doesn't look like this board supports PnP., so maybe a kernel command line parameter would do the trick? I haven't used IDE in a while and I don't have a system to play with to try to reproduce the problem. The last time I did (booting from a CF card) it just worked, but that system wasn't 16 years old. It also might be that support for your particular chipset isn't compiled into the kernel.