Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: Elec72 on July 25, 2014, 11:28:41 am

Title: Nspire Linux kernel panic
Post by: Elec72 on July 25, 2014, 11:28:41 am
I'm new here so I don't know if this is the right forum/topic to post in, sorry if I'm wrong.

Trying to boot linux on the nspire cx, I've booted it from initrd fine before, and when I try to boot it from a flash drive it panics:

Kernel panic - not syncing: No init found.

A microsecond before that:

request_module: runaway loop modprobe binfmt-0000

And then there's the backtrace after that. My kernel is the expanded one from ti-planet, rootfs is the x-config or something from ti-planet, and the commandline does include 'init=/sbin/init'
Title: Re: Nspire Linux kernel panic
Post by: Vogtinator on July 25, 2014, 01:02:55 pm
Title: Re: Nspire Linux kernel panic
Post by: Elec72 on July 25, 2014, 08:59:17 pm
1) I used your instructions
2) no, just sda because it's all one filesystem (following your (and tangrs') instructions)
3) ext4
Title: Re: Nspire Linux kernel panic
Post by: Streetwalrus on July 26, 2014, 05:59:11 am
If there's a partition table on the drive (recommended) then it hast to be sda1.
Title: Re: Nspire Linux kernel panic
Post by: Elec72 on July 26, 2014, 03:38:54 pm
If I use sda1 then it panics, but this time I can't see why because the backtrace takes up more than one screenful.
Title: Re: Nspire Linux kernel panic
Post by: Vogtinator on July 26, 2014, 04:11:04 pm
What happens if you strart an initrd and mount /dev/sda1? Can you execute <mountpoint>/sbin/init?
Title: Re: Nspire Linux kernel panic
Post by: Elec72 on July 26, 2014, 08:38:32 pm
If I mount /dev/sda and run <mountpoint>/sbin/init, init returns and doesn't display anything. Trying to mount /dev/sda1 fails: no such file or directory.
Title: Re: Nspire Linux kernel panic
Post by: Vogtinator on July 27, 2014, 07:36:28 am
Quote
If I mount /dev/sda and run <mountpoint>/sbin/init, init returns and doesn't display anything.
Then it seems to work. I don't know why it says it's unable to find an init binary. What happens if you specify "init=/bin/sh"?
Title: Re: Nspire Linux kernel panic
Post by: Elec72 on July 27, 2014, 02:39:59 pm
Commandline= root=/dev/sda rootdelay=10 init=/bin/sh. Kernel panic: not syncing: No init found.
Title: Re: Nspire Linux kernel panic
Post by: Vogtinator on July 27, 2014, 03:05:14 pm
Does /bin/sh work?
Title: Re: Nspire Linux kernel panic
Post by: Elec72 on July 27, 2014, 04:49:19 pm
Work meaning work as the init program or meaning able to run when I boot into a initrd and mount the flashdrive? It doesn't work as init=/bin/sh but it runs if I boot into initrd and run it.
Title: Re: Nspire Linux kernel panic
Post by: Vogtinator on July 27, 2014, 06:55:03 pm
Then the filesystem image may be broken, e.g. some dynamlic libs missing.
What happens if you extract the initrd onto the flash drive?
Title: Re: Nspire Linux kernel panic
Post by: Elec72 on July 28, 2014, 09:23:38 am
How would I extract a .tns file?
Title: Re: Nspire Linux kernel panic
Post by: Legimet on July 28, 2014, 12:57:18 pm
Mount it and copy the files.