Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: lberezinski on March 23, 2012, 07:16:58 AM

Title: TinyCore not detecting my Hard Drive
Post by: lberezinski on March 23, 2012, 07:16:58 AM
I'm fairly new to Linux and i'm trying to install tiny-core on my webdt 366.
but it seems not to detect the webdt internal flash drive.

i was able to boot with gparted live CD and see & format my disk my disk.
i was also able to boot with Ubuntu and see my disk.

any ideas?
Title: Re: TinyCore not detecting my Hard Drive
Post by: AbNoRMiS on March 23, 2012, 08:01:25 AM
from which media tinycore is booted?
possible need add waitusb bootcode?
Title: Re: TinyCore not detecting my Hard Drive
Post by: lberezinski on March 23, 2012, 08:11:41 AM
I'm booting from a USB cd-rom (CorePlus-4.4.iso)

so just to clarify

i have a webdt 366 (with one USB port)
a USB keyboard with two USB ports is connected to the webdt USB port
a USB mouse is connected to the first USB port on the keyboard
a USB cd-rom (booting device) is connected o the second USB port on the keyboard

i have tried the waitusb option but i still could not see my drive

when i use gparted it is mounted as hda1 and when i used Ubuntu it is mounted as sda1
Title: Re: TinyCore not detecting my Hard Drive
Post by: gutmensch on March 23, 2012, 08:26:39 AM
It's possible the built-in Flash ROM NAND chip is not initially supported, from some info in the web I found out that it might be a classic Geode Companion chip, possibly supported by the kernel options

Code: [Select]
CONFIG_MTD_NAND_CS553X

which we only include as a module, but I'm not sure it's present. Maybe curaga can help out here...

Source: http://webdt.org/forum/viewtopic.php?t=100 (http://webdt.org/forum/viewtopic.php?t=100)
Title: Re: TinyCore not detecting my Hard Drive
Post by: AbNoRMiS on March 23, 2012, 09:58:55 AM
if it's so i think that need download mtd-3.0.21-tinycore.tcz
and load module cs553x_nand
Code: [Select]
tce-load -wil mtd-3.0.21-tinycore.tcz
modprobe cs553x_nand
it is right?
Title: Re: TinyCore not detecting my Hard Drive
Post by: gutmensch on March 23, 2012, 10:08:25 AM
absolutely right, nice find... I didn't remember the mtd extension :-o
but however, a remaster would be needed to run at boot time, because of the chicken egg... loading an extension for the drive from which you're loading the extension for the... ;-)
Title: Re: TinyCore not detecting my Hard Drive
Post by: curaga on March 24, 2012, 12:43:58 AM
I'm not sure whether it's accessed via MTD or IDE. Check your dmesg from either gparted or ubuntu.

If via IDE, it's possible it has the cs5535 chip, which is still experimental in libata and thus disabled in our build.
Title: Re: TinyCore not detecting my Hard Drive
Post by: nekys on May 22, 2012, 06:19:04 PM
I have same problem, I tried:
tce-load -wil mtd-3.0.21-tinycore.tcz
modprobe cs553x_nand
and I get this:
modprobe: can't load module cs553x_nand (kernel. tclocal/ drivers/ mtd/ nand/ cs553x_nand. ko. gz): No such device or address

Where I think I have to do something with depmod...
Title: Re: TinyCore not detecting my Hard Drive
Post by: nekys on May 22, 2012, 06:41:21 PM
I found that mtd from repository has path for the modules as /usr/local/lib/modules and not /lib/modules. I moved the modules inside /lib/modules and still doesn't work.
Title: Re: TinyCore not detecting my Hard Drive
Post by: Juanito on May 22, 2012, 08:16:15 PM
I found that mtd from repository has path for the modules as /usr/local/lib/modules and not /lib/modules
/usr/local/lib/modules is the standard tinycore location for modules in an extension

Quote
Where I think I have to do something with depmod
tce-load performs this automatically

Perhaps the module is not recognising your hardware, does "modinfo cs553x_nand" show any optional parameters you could pass?
Title: Re: TinyCore not detecting my Hard Drive
Post by: Rich on May 22, 2012, 09:30:38 PM
modinfo shows:
Quote
filename:       kernel.tclocal/drivers/mtd/nand/cs553x_nand.ko.gz
description:    NAND controller driver for AMD CS5535/CS5536 companion chip
author:         David Woodhouse <dwmw2@infradead.org>
license:        GPL
vermagic:       3.0.3-tinycore SMP mod_unload 486
depends:        mtd,nand,nand_ecc
Title: Re: TinyCore not detecting my Hard Drive
Post by: Juanito on May 22, 2012, 10:35:11 PM
There's a problem if modinfo shows "3.0.3-tinycore SMP mod_unload 486" and the extension is named "mtd-3.0.21-tinycore.tcz"...
Title: Re: TinyCore not detecting my Hard Drive
Post by: curaga on May 23, 2012, 04:37:00 AM
The error " No such device or address" is clear, the module loaded successfully but you have no such hardware. Or the module does not support your hw.
Title: Re: TinyCore not detecting my Hard Drive
Post by: Rich on May 23, 2012, 05:48:39 AM
Hi Juanito
My apologies, I should have stated that I performed that command under TC4.1 (3.0.3).
Title: Re: TinyCore not detecting my Hard Drive
Post by: nekys on May 23, 2012, 12:45:02 PM
The error " No such device or address" is clear, the module loaded successfully but you have no such hardware. Or the module does not support your hw.

For sure I have that hardware since I opened my device and this is what the chip writes on it.
Title: Re: TinyCore not detecting my Hard Drive
Post by: Rich on May 23, 2012, 01:45:45 PM
Hi nekys
Is the  cs553x_nand  driver listed if you enter the command  lsmod ?
Title: Re: TinyCore not detecting my Hard Drive
Post by: curaga on May 24, 2012, 12:44:50 AM
For sure I have that hardware since I opened my device and this is what the chip writes on it.

I'll ask the same as for the OP, are you sure it's via NAND and not IDE?