Author Topic: Debian files corupt?  (Read 17069 times)

isbric

  • Guest
Debian files corupt?
« on: April 24, 2011, 11:03:28 am »
Hi,

I have downloaded the debian rootfs and the kernel, got it running, so far so good.

However at boot i get errors from modprobe, it cant find the modules for the current kernel version (2.6.30.4) in /lib/modules/

the only modules in there is theĀ  2.6.26-1-versatile modules.

same goes with trying to modprobe them manually, i get this error:
root$modprobe ftdi_sio
FATAL: Could not load /lib/modules/2.6.30.4/modules.dep: No such file or directory



i have read all your pdf files (sadly most of them is out of date) with no luck.
I read all posts related to GadgetPC and from what i understand people semn to actually get the right modules version compiled from the Virtual Ubuntu box.

what shuld i do to get this working? i need to get a running debian install and get gcc running on it, or rather a good guide on the crosscompiling for the gadget pc.


Side note about the dokument regarding debian install, it tells me to start the vm but vmware player doesnt allow a duplicate of the hdd:s with the same UUID so the only way to boot the virtual ubuntu box is to remove the IDE hdd.


vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Debian files corupt?
« Reply #1 on: April 25, 2011, 06:19:26 am »
You can find all modules under
/lib/modules/drivers
As the 1st step you have to install the necessary module
For example,
install -c -m 0644 /lib/modules/drivers/ftdi_sio.ko /lib/modules/2.6.30.4/ftdi_sio.ko

Then you can execute
depmod -a
/sbin/modprobe ftdi_sio

Also,  the latest releases provide
/etc/init.d/bipom_installer.sh
It starts / checks automatically at power on
to see if all modules are installed properly

It seems you don\'t use the latest Debian rootfs from Bipom
if you face such problems with modules


isbric

  • Guest
Re: Debian files corupt?
« Reply #2 on: April 25, 2011, 09:59:05 am »
>You can find all modules under
>/lib/modules/drivers
>As the 1st step you have to install the necessary module
>For example,
>install -c -m 0644 /lib/modules/drivers/ftdi_sio.ko /lib/modules/2.6.30.4/ftdi_sio.ko

On the Debian rootfs or the virtual ubuntu box?
There is no such directory "/lib/modules/drivers" on the rootfs i downloaded here: http://www.bipom.com/web_softwares/2899678.html

nether does this dir exist: /lib/modules/2.6.30.4/

but i think your right, the overall feeling is that i got a faulty rootfs.


is there a mirror for these files? or could somone send them to me?

allso, i cant mount the secund hdd from the virtual ubuntu to copy the rootfs, so im realy stuck with the fs on the site.

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Debian files corupt?
« Reply #3 on: April 26, 2011, 04:00:42 pm »

isbric

  • Guest
Re: Debian files corupt?
« Reply #4 on: April 27, 2011, 12:31:16 pm »
i am using that, my FAT partition curently holds the uimage and the drivers folder.

but how do i use the modules in there? do i need to copy them somwhere?

[EDIT] Found that i could copy them to /lib/modules/2.6.30.4/

However i stil need some info on crosscompiling of driver modules like this one http://www.wikidevi.com/wiki/EDUP_EP-N8508

« Last Edit: April 27, 2011, 02:18:25 pm by isbric »

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Debian files corupt?
« Reply #5 on: April 28, 2011, 12:42:45 am »
you have to install modules

mkdir lib/modules/2.6.30.4
install -c -m 0644 {type your folder on FAT drive}/ftdi_sio.ko /lib/modules/2.6.30.4/ftdi_sio.ko
depmod -a
/sbin/modprobe ftdi_sio

isbric

  • Guest
Re: Debian files corupt?
« Reply #6 on: April 30, 2011, 02:04:56 am »
thanks that works just fine.

however my wifi adapter is not supported, i need to know how i can build the driver for my usb wifi.

how do i crosscompile it, or shuld i try to compile it on the gadgetpc?

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Debian files corupt?
« Reply #7 on: April 30, 2011, 08:33:47 am »
if you have the driver sources you can cross-compile under Vmware Ubuntu

isbric

  • Guest
Re: Debian files corupt?
« Reply #8 on: May 01, 2011, 03:56:57 am »
Ok, so my usb wifi is a Zyxel G-202 using the ZD1211RW driver.

i got the firmware installed, also the kernelversion does support this wifi card.

i have been trying to build the module from the VMware with no luck.

what steps is needed to add this module and have it compiled into a .ko file?

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Debian files corupt?
« Reply #9 on: May 04, 2011, 05:35:56 am »
There is a typical scenario to build ili9325.ko module ( framebuffer driver) under Ubutntu_ARM ( Vmware image BiPOM provides)

mini@mini-max:~$ . ~/sh/driver.sh
mini@mini-max:~/linux/drivers$ cd ili9325
mini@mini-max:~/linux/drivers/ili9325$ make
make -C /home/mini/linux/linux-2.6.30.4 SUBDIRS=/home/mini/linux/drivers/ili9325 modules
make[1]: Entering directory `/home/mini/linux/linux-2.6.30.4\'
  CC [M]  /home/mini/linux/drivers/ili9325/ili9325.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/mini/linux/drivers/ili9325/ili9325.mod.o
  LD [M]  /home/mini/linux/drivers/ili9325/ili9325.ko
make[1]: Leaving directory `/home/mini/linux/linux-2.6.30.4\'
mini@mini-max:~/linux/drivers/ili9325$


konthaijaiyen

  • Guest
Re: Debian files corupt?
« Reply #10 on: September 30, 2011, 04:38:10 am »
thank you