Author Topic: Calling all Linux Kernel developers!  (Read 391677 times)

0 Members and 3 Guests are viewing this topic.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1035 on: February 17, 2014, 03:20:30 pm »
Quote
]was thinking it was arm9
It is an ARM926EJ-S core which is an implementation of the armv5 instruction set.

Quote
yes i can mount it if i boot from the ram disk.
What's the kernel panic?

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1036 on: February 17, 2014, 03:49:49 pm »
can't read that fast..
have an image of the last screen i can see:

using this to boot:
Code: [Select]
kernel linux/zImage.tns
cmdline root=/dev/sda earlyprintk debug console=tty0 console=ttyAMA0,115200n8 rootdelay=10
boot

think i need to use sda1 :s ill test that..

nope.. still the same panic, using an ext4 usb flash drive.
« Last Edit: February 17, 2014, 04:07:03 pm by floris497 »

Offline Mogolecho

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1037 on: February 19, 2014, 03:35:02 am »
Hi
I've a problem when booting Linux / it works with only an initrd image and the root fs on /dev/ram. But not when I'm booting on USB.
Here my start script :

kernel linux/linux.tns
initrd linux/initrd.tns
cmdline rootdelay=10 root=/dev/sda1
boot

It seems to boot fine, but then, after "Start logging...", I get two errors : Can't open /dev/null No such file or directory, about 5-6 times. Then, every second, I get Can't open /dev/tty0 No such file or directory.
And I must reset the calculator.

Without initrd, I get the same kernel panic as floris497 (USB stick has an unique ext4 partition, and yes it's /dev/sda1, I verified when Linux was running OK on /dev/ram).

Please help me :)
« Last Edit: February 19, 2014, 03:50:48 am by Mogolecho »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1038 on: February 19, 2014, 07:50:58 am »
Probably you got the wrong kernel, without devtmpfs.
You need the "expandedconfig" for it.

Offline Mogolecho

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1039 on: February 19, 2014, 10:37:42 am »
No, I was using the expanded kernel :)
I don't know why, but now it's working - I've just a bit changed my boot script.

So.
Now Linux boots fine and the root fs is mounted.
But I get this when different services are starting (logging, rsyslog, network, nfs...) :

Starting NFS statd: done
Starting NFS services: done
Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
done
Starting NFS mountd: Cannot register service: RPC: Unable to receive; errno = Connection refused
done

At this point, nothing more happens and I can't log in or type commands.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1040 on: February 19, 2014, 10:49:04 am »
You can disable NFS by rm-ing /etc/init.d/rpc.nfsd

Offline Mogolecho

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1041 on: February 19, 2014, 10:58:59 am »
Yep, I had the same idea.
I removed 'S60nfs' (not rpc.nfsd) in /etc/init.d.
No error messages, but the console becomes inactive juste after "Starting sshd: OK". Just the blinking cursor, but no prompt and login...

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1042 on: February 19, 2014, 12:49:56 pm »
Maybe it's started somewhere else? Can you try init=/bin/bash as cmdline? If that doesn't work append "console=tty0" as well.

Offline Mogolecho

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1043 on: February 20, 2014, 11:32:55 am »
Thanks, it seems to work !
Juste some strange things : when starting bash (via init or by command), he says : "bash: no job control in this shell".
Or when I try to launch top : "top: no process info in /proc".

But it works.
Thanks for your help :)

Hm, how do you do to start X ? I can see xeyes, xclock and others but no startx or xinit.

EDIT : hm, endly there's a problem ! The file system is read-only... :/
« Last Edit: February 20, 2014, 11:57:31 am by Mogolecho »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1044 on: February 20, 2014, 12:36:07 pm »
startx should be there...
You can mount it read-write by doing "mount -o remount,rw /".

Offline Mogolecho

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1045 on: February 20, 2014, 01:35:16 pm »
startx should be there...
Nope ! :)

You can mount it read-write by doing "mount -o remount,rw /".
mount: can't read '/proc/mounts': No such file or directory

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1046 on: February 20, 2014, 04:14:45 pm »
I'd suggest "mount -t procfs procfs /proc" but that would fail as well, so "init 1" or "init S" may be the best option to skip misbehaving init scripts.
Which root are you using? I'll have to fix it...

Offline Mogolecho

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1047 on: February 21, 2014, 10:54:17 am »
I'm using the rootfs from http://tiplanet.org/nspire-linux-builds/ (where your website is redirecting).
If you have the courage to fix this fs, tell me when it's ready :D
« Last Edit: February 21, 2014, 10:55:50 am by Mogolecho »

Offline schuhumi

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1048 on: February 22, 2014, 02:50:46 pm »
Hello  :)

I'm new here and a big fan of Linux. I got it to boot with initrd as well as from usb flawlessly. Now I want to boot into ArchLinux:


This is why I need to build the kernel myself, but it won't work for some reason... What I did:
Downloaded this https://github.com/tangrs/linux (branch: nspire)
export ARCH=arm
make nspire_defconfig
make -j8
no errors -> copied it to the calculator and tried to boot with initrd -> stuck at the linuxloader2-screen without a single kernel-message

Second attempt:
rm .config
make distclean
export ARCH=arm
wget https://raw.github.com/Vogtinator/nspire-linux-configs/master/kernel/.config
make -j8
no errors -> stuck again at the same point

Can someone help me please?

thanks in advance
schuhumi

PS: stole the distclean from here: http://tiplanet.org/nspire-linux-builds/log_expanded_20130211_0728.txt  Sadly I can't find the build-script producing it...

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1049 on: February 22, 2014, 06:07:10 pm »
Don't use that kernel, it's outdated. Use the device tree kernel, from kernel.org. And remember to set CONFIG_CGROUPS, as the message says.