WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny Kernel Compilation Error  (Read 8214 times)

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #15 on: March 22, 2010, 06:28:42 AM »
With all version don't work, same message.

I have try to use the tiny core init.rd and xlinux kernel,
the system start and work, but when i install a tcz package
at the end of the process, the appbrowser return this error :

mounting /dev/loop0 on /tmp/tcloop/cfdisk: No such device


Why this error and why the xlinux kernel work and tce kernel don't work?

Thanks

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #16 on: March 22, 2010, 06:52:27 AM »
Same problema with 2.10 init rd and tiny core kernel recompiled with math emulation

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12077
Re: Tiny Kernel Compilation Error
« Reply #17 on: March 22, 2010, 07:14:26 AM »
Same problema with 2.10 init rd and tiny core kernel recompiled with math emulation

If  I understand correctly, you've managed to boot your customised kernel bzImage with tinycore.gz from the tinycore_2.10.iso

..but you get the error message:
Code: [Select]
mounting /dev/loop0 on /tmp/tcloop/cfdisk: No such device..when you try to load an extension.

Are you booting from hd, usb or cd?

What boot loader and boot loader configuration are you using?

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Tiny Kernel Compilation Error
« Reply #18 on: March 22, 2010, 03:45:12 PM »
@mattiaxx86to: When you got the error message (mounting /dev/loop0 on /tmp/tcloop/cfdisk: No such device) did you check how many loop devices were actually present (e.g. ls /dev | grep -c '^loop')? What about the ownership and permissions of those devices?

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #19 on: March 23, 2010, 12:58:48 AM »
@maro : your command result is 255, the own for all /dev/loop is root and permission:

brw-rw-r--

Thanks

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #20 on: March 23, 2010, 01:00:41 AM »
With help of Juanito i can see when the tinycore init rd run there are many error :

Booting tinycore_2.10
Running Linux Kernel 2.6.29
Starting udev daemon for hotplug support...udevd[1143]: inotify_init failed: Function not implemented

udevd[1143]: error initializing inotify

Setting Timezone to UTCerror sending message: connection refused
udevadm[1875]: error sending message: connection refused

hwclock: can't open /dev/misc/rtc : No such file or directory

But when i try to install an extension, in dmesg anything change, the last 3 row are :

EXT3-fs warning : mounting unchecked fs, running e2fsck is reccomended
EXT3 FS on hda2, internal journal
EXT3-fs mounted filesystem with ordered data mod
FAT: IO charset iso8859-1 not found


Why this? i have only recompile the kernel with math emulation!

Thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10221
Re: Tiny Kernel Compilation Error
« Reply #21 on: March 23, 2010, 04:39:45 AM »
Are you sure the old config was properly used? ie copied as ".config", not "config" before make menuconfig.
Looks like many things in our config are missing in your build..
The only barriers that can stop you are the ones you create yourself.

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #22 on: March 23, 2010, 06:20:45 AM »
Yes, i'm sure, because if i run custom kernel in a pc with coprocessor all works fine!

1)But first i have copy the config in the source patched kernel with name .config
2)Run make oldconfig
3)Run make menuconfig (enable math emulation)
4)Run make bzImage

but i don't understand why the kerne don't work properly......

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17

Offline helander

  • Full Member
  • ***
  • Posts: 183
Re: Tiny Kernel Compilation Error
« Reply #24 on: March 23, 2010, 04:36:10 PM »
Yes, i'm sure, because if i run custom kernel in a pc with coprocessor all works fine!

1)But first i have copy the config in the source patched kernel with name .config
2)Run make oldconfig
3)Run make menuconfig (enable math emulation)
4)Run make bzImage

but i don't understand why the kerne don't work properly......

From the above it looks like you are not rebuilding the kernel modules. As a general rule you need to rebuild the kernel modules whenever you make a config change. I do not know if the change you made actually requires a rebuild of the modules or not. Two ways to find out:
  • rebuild modules and "install them" and see if your problem disappears
  • study the module sources and how they are affected by the config change you made

/Lars

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #25 on: April 01, 2010, 06:37:50 AM »
How can i rebuild the kernel modules?

Thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12077
Re: Tiny Kernel Compilation Error
« Reply #26 on: April 01, 2010, 06:42:37 AM »
[removed now I realised which thread this is]
« Last Edit: April 01, 2010, 07:05:18 AM by Juanito »

Offline mattiaxx86to

  • WikiUser
  • *
  • Posts: 17
Re: Tiny Kernel Compilation Error
« Reply #27 on: April 01, 2010, 06:53:03 AM »
initial purpose : run tinycore on a pc without math processor, i have recompile the kernel but i can't install module tcz (read the topic for detail), helander write to recompile the modules for resolve my problem....

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12077
Re: Tiny Kernel Compilation Error
« Reply #28 on: April 01, 2010, 07:04:29 AM »
..sorry - I hadn't realised this was the same thread.

Probably better to use the full patched kernel source with your modified .config and then "make modules && make modules_install"

Note that for consistency, it would be better to move the installed modules to the default tinycore location rather than /lib

Offline helander

  • Full Member
  • ***
  • Posts: 183
Re: Tiny Kernel Compilation Error
« Reply #29 on: April 01, 2010, 08:17:26 AM »
How can i rebuild the kernel modules?

Thanks

There is a "Custom Kernel" article on the week (found under section "Remastering") that probbaly could provide you with some info. Note that the article mentions .tcem extensions. Today all extensions are named .tcz also the ones that contain kernel modules. Apart from that the article is "fine".

/Lars