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

0 Members and 1 Guest are viewing this topic.

Offline Unicorn

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 16
  • Rating: +0/-0
  • I am rainbows
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1200 on: July 18, 2015, 03:43:59 pm »
Very cool. :)

Offline johnvade

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +1/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1201 on: July 27, 2015, 10:16:24 am »
a
« Last Edit: December 12, 2017, 03:12:46 pm by johnvade »

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #1202 on: July 28, 2015, 11:02:19 pm »
Hello, long time lurker, first time poster here. I have several problems with my TI-Nspire CX running OS 3.6.0.550. When I run linuxloader2, it allocates a maximum of ~31mb RAM (screenshot A), but every video I've watched showcasing Linux on the Ti-Nspire CX shows linuxloader2 allocating ~43mb RAM.

Yeah, that is rather strange. Could be just that OS 3.6 takes up more RAM.

Quote
This keeps me from using the xconfig initrd images.

If I remember right, the xconfig images are too large to be loaded onto the calculator. They load fine but leave too little memory left for Linux to use and decompress the image. You'll most likely need to load this onto a USB drive to get it to boot.

Quote
Another problem is that whenever I try to use an initrd larger than 4mb, despite what the "Improvements over old one" section of the LL2 readme says (Being able to load ramdisks and kernels larger than 4MB (up to ~40MB on the CX), I get a kernel panic.

Is this the xconfig image you're referring to here? In practice, you can only really load initrd images that are ~40% the size of total available RAM. This is because Linux needs memory to function and also needs additional large amounts of memory to store the decompressed initrd image.

Quote
When I try to use the old kernel with a ramdisk larger than 4mb or a flash drive, I get a crptic kernel panic screen (screenshot B).

That's strange. Could be a missing filesystem driver. What did you format the flash drive with? See above for ramdisks.

Quote
When I try to use the new kernel with a ramdisk larger than 4mb, I get a less cryptic panic screen (screenshot C) which doesn't make any sense since LL2 is supposed to support ramdisks larger than 4mb. And finally, when I use a flash drive to boot into Debian Jessie (armel), which only works with the new kernel, I can do most everyday tasks, but I can't properly reboot the system and have to reset (screenshot D). Thanks in advance!

Could be that Debian just takes a while to shut down. If you force a reboot by running
Code: [Select]
reboot -f does it reboot instantly?


Offline johnvade

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +1/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1203 on: July 29, 2015, 04:52:13 am »
a
« Last Edit: December 12, 2017, 03:13:23 pm by johnvade »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1204 on: July 29, 2015, 04:58:43 pm »
Screenshot D says that a feature is not supported, probably it's not enabled in the kernel. I don't know on the top of my head which config option that is, but it should be easily resolvable.
smallconfig and xconfig are too big for using it as an initrd as
-compressed ramdisk
-uncompressed ramdisk
-kernel
are in RAM simultaneously.
It may work if you decompress the ramdisk manually, but they're not intended for use as ramdisk anyway, only busyboxconfig is.

Offline alnwlsn

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1205 on: September 06, 2015, 10:52:54 pm »
Hello, another noob here. I read about linux on the nspire a while ago, and seeing as I now use CAS more often (and can't put a CAS os on my rev. J CX) I figured that I'd give it a try. I followed codinghobbit's tutorial and installed Debian on my calculator. Then I compiled the (device tree) kernel using vogtinator's config with a couple kernel options added to get my usb ethernet adapter working. That worked too. Now I'm trying to get x working.

Installing xorg on debian failed. "Hmm, maybe it's something to do with debian packages."
Fine, instead of debian, put the latest xconfig rootfs from tiplanet on my flash drive, since I've seen videos of xconfig working.

It boots, but gives a similar error when I try to do startx [attached]. "Ok, maybe it's a problem with my kernel."
Replaced the kernel I built with the latest from tiplanet (also device tree).

The same error occurs.
Both my kernel and the tiplanet one were kernel version 4.2 "Ok, maybe newer kernels don't work."
Fine, install the latest old kernel (non device tree) from tiplanet.

It boots, and startx does start x, but none of the inputs work; the cx keyboard and touchpad don't do anything, so I can't type anything. I don't have a usb keyboard, but I do have a mouse. It doesn't move the mouse cursor. I can tell that it isn't frozen because the clock still works. Then after a couple minutes, the screensaver kicks in and the screen turns off. I can't get out of it, and have to use the reset button.

Therefore, a couple questions:
First, is x possible with the newer kernels? How do I get it working? More kernel options?
Second, how do I get the inputs to work in X? I don't know if the touchpad can work as a mouse, but the keyboard should work. I have looked around and found the "evdev" driver Could this be it? How do I enable it?

At this point I should say that I don't really know what I'm doing. I know some Linux stuff from playing with Raspberry pi, but I've never really done anything at this lower level. I'm just good at googling and poking around.

Offline Ivoah

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +3/-0
    • View Profile
    • Codinghobbit
Re: Calling all Linux Kernel developers!
« Reply #1206 on: September 06, 2015, 11:01:30 pm »
Hello, another noob here. I read about linux on the nspire a while ago, and seeing as I now use CAS more often (and can't put a CAS os on my rev. J CX) I figured that I'd give it a try. I followed codinghobbit's tutorial and installed Debian on my calculator. Then I compiled the (device tree) kernel using vogtinator's config with a couple kernel options added to get my usb ethernet adapter working. That worked too. Now I'm trying to get x working.

Installing xorg on debian failed. "Hmm, maybe it's something to do with debian packages."
Fine, instead of debian, put the latest xconfig rootfs from tiplanet on my flash drive, since I've seen videos of xconfig working.

It boots, but gives a similar error when I try to do startx [attached]. "Ok, maybe it's a problem with my kernel."
Replaced the kernel I built with the latest from tiplanet (also device tree).

The same error occurs.
Both my kernel and the tiplanet one were kernel version 4.2 "Ok, maybe newer kernels don't work."
Fine, install the latest old kernel (non device tree) from tiplanet.

It boots, and startx does start x, but none of the inputs work; the cx keyboard and touchpad don't do anything, so I can't type anything. I don't have a usb keyboard, but I do have a mouse. It doesn't move the mouse cursor. I can tell that it isn't frozen because the clock still works. Then after a couple minutes, the screensaver kicks in and the screen turns off. I can't get out of it, and have to use the reset button.

Therefore, a couple questions:
First, is x possible with the newer kernels? How do I get it working? More kernel options?
Second, how do I get the inputs to work in X? I don't know if the touchpad can work as a mouse, but the keyboard should work. I have looked around and found the "evdev" driver Could this be it? How do I enable it?

At this point I should say that I don't really know what I'm doing. I know some Linux stuff from playing with Raspberry pi, but I've never really done anything at this lower level. I'm just good at googling and poking around.

Gah! Why does everyone think I'm codinghobbit??? It says the author of the post is "Ivo". Anyways, I'm the one who wrote the tutorial, and I too tried to get X working (before the new DTB kernel was out for the Nspire) and ran into the same problem you had. I just gave up though, so I don't know what the solution is. Vogtinator or tangrs may be able to help you.
http://codinghobbit.no-ip.org
My Calcs:
TI-86 (now broken) $2
TI SR-56 - $0
TI-Nspire CX CAS - $152
TI-84+ Silver Edition - $56
TI-84+ Silver Edition - $0
TI-85 - $0
TI-73 Explorer VS - $10
ViewScreen - $3

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1207 on: September 07, 2015, 08:41:59 am »
Hm. I haven't tried X11 in a long time, I'm not sure whether it's even supposed to be working with the DT kernel. Similiar issue with the touchpad, it's only partially implemented mainline and not active by default.

The screenshot has a fairly interesting error: "Address family not supported by protocol". My guess is that that is the ultimate reason why it doesn't work, combined with the "unable to open socket".
I can't tell you which kernel option to activate, but I'll try to get it working (latest devicetree and buildroot) when I've got some free time on my hands :-)

You should try to boot an older, non-devicetree kernel with an older, xconfig image. I can't tell you which versions to try (tiplanet.org is down for me, currently...).

Offline joshumax

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +3/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1208 on: September 14, 2015, 01:47:46 am »
Hm. I haven't tried X11 in a long time, I'm not sure whether it's even supposed to be working with the DT kernel. Similiar issue with the touchpad, it's only partially implemented mainline and not active by default.

The screenshot has a fairly interesting error: "Address family not supported by protocol". My guess is that that is the ultimate reason why it doesn't work, combined with the "unable to open socket".
I can't tell you which kernel option to activate, but I'll try to get it working (latest devicetree and buildroot) when I've got some free time on my hands :-)

You should try to boot an older, non-devicetree kernel with an older, xconfig image. I can't tell you which versions to try (tiplanet.org is down for me, currently...).

Sorry about the late reply, but IIRC this is because Unix domain sockets weren't enabled in the kernel build, which is necessary for the AF_LOCAL socket family to work, which Xorg uses.

From net/unix/Kconfig:
Code: [Select]
CONFIG_UNIX:
  │
  │ If you say Y here, you will include support for Unix domain sockets
  │ sockets are the standard Unix mechanism for establishing and
  │ accessing network connections.  Many commonly used programs such as
  │ the X Window system and syslog use these sockets even if your
  │ machine is not connected to any network.  Unless you are working on
  │ an embedded system or something similar, you therefore definitely
  │ want to say Y here.

I hope this helps.
« Last Edit: September 14, 2015, 01:59:03 am by joshumax »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1209 on: September 14, 2015, 05:11:07 am »
Enabled in kernel config, currently building on tiplanet.org.

Edit: Build finished: https://tiplanet.org/nspire-linux-builds/devicetree/zImage_expanded_20150914_1111.tns
« Last Edit: September 14, 2015, 05:15:08 am by Vogtinator »

Offline tonzaysi7

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1210 on: February 29, 2016, 03:05:56 pm »
Hello

I managed to get linux booting with root filesystem on a USB drive with this kernel command line:

Code: [Select]
cmdline root=/dev/sda rw rootwait
But I can't get the keypad working and I don't know what's wrong with it as the driver should be loaded.
If someone knows about this problem, please help.

Edit: My calc model: Nspire CX CAS
« Last Edit: February 29, 2016, 03:09:06 pm by tonzaysi7 »

Offline kitten

  • LV3 Member (Next: 100)
  • ***
  • Posts: 63
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1211 on: October 12, 2016, 02:01:06 pm »
Hello

I managed to get linux booting with root filesystem on a USB drive with this kernel command line:

Code: [Select]
cmdline root=/dev/sda rw rootwait
But I can't get the keypad working and I don't know what's wrong with it as the driver should be loaded.
If someone knows about this problem, please help.

Edit: My calc model: Nspire CX CAS

Are you using the DTB, too? You have to download this file, rename it to nspire.dtb.tns, and place it somewhere in your calculator's /documents directory ("My Documents" in the built-in file explorer) and then type the following command before booting Linux.

Code: [Select]
dtb [x]/nspire.dtb.tnsx = the directory where nspire.dtb.tns is (excluding the brackets), leave blank if at root of /documents directory (also remove the "/")

Or you could simply follow the part of Ivoah's guide from step 10, just don't follow the part where you set up a Debian USB rootfs. (The files listed on the guide can be found here, looks like @Ivoah forgot to include that!)
Not to be confused with Harry Truman.

Offline superloach

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
  • I do lots of things.
    • View Profile
    • Superloa.ch
Re: Calling all Linux Kernel developers!
« Reply #1212 on: February 23, 2018, 01:10:00 am »
Gosh, what has happened to all of the good threads?!? All the good ndless programs seem dead... :(
Anyway, has anyone gotten this to work recently?
Running linuxloader2 just sits there, showing the last thing that ndless rendered (some micropython stuff in this case).
Same thing happens when running from the start_initrd.ll2.
TI-nspire CX, OS 4.5.0.1180, ndless 4.5.0, latest linuxloader builds from tiplanet.
Hope somebody can help me, because this is like the coolest thing ever to me.
 

Offline cd109876

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1213 on: February 28, 2018, 10:28:41 am »
Same issue on my CX CAS on os 4.2, it launches linuxloader2 in compatibility mode and will go to a black screen/whatever ndless rendered previously. It needs updating to support newer versions I guess. OS 3.6 works with linuxloader2 fine in firebird-emu.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1214 on: March 08, 2018, 04:55:22 pm »
As far as I can tell, this method of booting Linux is outdated. There are extensive tutorials on TI-Planet to set up a more up to date exploit and kernel:
- nBoot+ControlX https://tiplanet.org/forum/viewtopic.php?f=57&t=18920
- or in case you have newer hardware that requires it, nLoader https://tiplanet.org/forum/viewtopic.php?f=57&t=21094
« Last Edit: March 08, 2018, 05:09:55 pm by Streetwalrus »