Author Topic: Nspire Linux kernel panic  (Read 5811 times)

0 Members and 1 Guest are viewing this topic.

Offline Elec72

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Nspire Linux kernel panic
« 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'

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Linux kernel panic
« Reply #1 on: July 25, 2014, 01:02:55 pm »
  • Unzipped image correctly?
  • Right partition given by "root=/dev/sdaX"?
  • Correct filesystem (ext4)?

Offline Elec72

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Nspire Linux kernel panic
« Reply #2 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

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Nspire Linux kernel panic
« Reply #3 on: July 26, 2014, 05:59:11 am »
If there's a partition table on the drive (recommended) then it hast to be sda1.

Offline Elec72

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Nspire Linux kernel panic
« Reply #4 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.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Linux kernel panic
« Reply #5 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?

Offline Elec72

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Nspire Linux kernel panic
« Reply #6 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.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Linux kernel panic
« Reply #7 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"?

Offline Elec72

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Nspire Linux kernel panic
« Reply #8 on: July 27, 2014, 02:39:59 pm »
Commandline= root=/dev/sda rootdelay=10 init=/bin/sh. Kernel panic: not syncing: No init found.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Linux kernel panic
« Reply #9 on: July 27, 2014, 03:05:14 pm »
Does /bin/sh work?

Offline Elec72

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Nspire Linux kernel panic
« Reply #10 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.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Nspire Linux kernel panic
« Reply #11 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?

Offline Elec72

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: Nspire Linux kernel panic
« Reply #12 on: July 28, 2014, 09:23:38 am »
How would I extract a .tns file?

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Nspire Linux kernel panic
« Reply #13 on: July 28, 2014, 12:57:18 pm »
Mount it and copy the files.