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

0 Members and 3 Guests are viewing this topic.

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #180 on: November 03, 2012, 12:49:48 pm »


So, in summary, to get this snapshot up and running:

1. Prepare your rootfs. Get a USB drive that you don't mind completely erasing. In my config, I didn't have a partition table. I just ran dd if=rootfs.ext2 of=/dev/X (replace X with your USB device).
2. Copy bootloader and bootloader script (ensure that the config inside is correct) to a place on your calc.
3. Connect your OTG cable's A end into your calculator.
4. Run the boot script.
5. Wait until the console reads "Waiting 10 seconds...". As soon as this happens, plug in your USB drive. A lot of text should scroll by - if not, you probably didn't do step 3 correctly.
6. Wait a little and you should eventually be dumped to a shell. If you get a kernel panic, it probably means you didn't do it fast enough or your USB isn't supported by the kernel.

To get mplayer working:

1. Plug in a USB drive with the movie/video you want to play and mount it as usual. This snapshot has support for MSDOS FAT and VFAT filesystems.
2. Run mplayer -vo fbdev2 -nosound -framedrop [filename]

Link to snapshot

This snapshot also has a non-working X server. If you can get xcalc or xterm to run, please email me!

Have fun!




i have a problem with the steps T.T
when i download the snapshot and put it in my ti nspire cx and i open the linux loader, the command line screen is white and  it always says uknown command, also when i type boot says no kernel loaded,

i dont understand step 1 either

can someone help me pls?

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #181 on: November 03, 2012, 01:05:52 pm »
When you run linuxloader2, you need to get your ramdisk and kernel loaded.
So type initrd then type the initrd file location (initrd.tns, or maybe linux/initrd.tns) and press enter.
Then type kernel, the location of zimage.tns, and press enter.
The type boot and enter.

Use this
https://github.com/tangrs/nspire-linux-loader2

An alternative way is to just use the bootloader script, but you have to add this to ndless.cfg
ext.ll2=linuxloader2
 

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #182 on: November 03, 2012, 02:06:00 pm »
thanks for before
it boots but it doesnt displays me the delay or doesnt gets the usb, am i doing something wrong? o.O

err sorry, i dont understand whats in that link you gave me, imagine that you are explaining this to a baby XD, ive never coded linux or anything T.T

EDIT(Eeems): Joined double post.
« Last Edit: November 03, 2012, 02:27:35 pm by Eeems »

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #183 on: November 03, 2012, 02:24:48 pm »
I only get the delay when I run the bootloader_usb.ll2.ext file, but you have to have changed the ndless.cfg file.
Do you have the initrd and zimage files on your calc?

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #184 on: November 03, 2012, 02:27:21 pm »
oh i have zimage and initrd :D but i havent changed ndless cfg, ill do it :DD

ok now i have the delay but when i connect something.... nothing happens T-T

btw, what do i do with the linux loader 2 master archive that u linked? o.O
« Last Edit: November 03, 2012, 03:42:52 pm by noobnonin »

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #185 on: November 03, 2012, 03:02:26 pm »
Yeah, that is the problem I have when running the bootloader, it just freezes. If you have a mac, then you can use their tutorial to allow your flash drive to work.
Elsewise, boot it from the white screen, with typing initrd initrd.tns and what not. When I do that, it doesn’t freeze, I still can’t get a flash drive  to work, but I can get the keyboard to work.

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #186 on: November 04, 2012, 01:38:24 pm »
I just had a great idea that would probably not work.
Would it possible to port the nspire emulator onto the calculator with Linux?
So maybe you could use the keyboard on an nspire.

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #187 on: November 04, 2012, 08:48:53 pm »
I'm trying to get the USB support working. I use the boot script and right image, etc. I plug in my flashdrive at the right time and when I do it, it seems to work but then spews out stuff with lines like "[<c01f0704>] (kernel_init+0x0/0x2a4) from [<c00092f0>] (ret_from_fork+0x14/0x24)". That example line is the last one the calc outputs before it freezes (the cursor doesn't flash, nothing happens even if I let it sit for 5 minutes). Any ideas on how to get it to work?
On a related note, nice work tangrs!
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #188 on: November 04, 2012, 09:44:30 pm »
I believe you have to follow step one and change the partition on your flash drive.
I never got that to work.
If want to use a little bit of USB, just boot it from linuxloader2, and you can use a keyboard, but not a flash drive or video.

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #189 on: November 05, 2012, 01:17:38 am »
I added the linuxloader and the bootscript to my calc and I added ext.ll2=linuxloader2 to my ndless.cfg. I started it up and realized I had forgotten to send the ZImage and initrd files so I rebooted my calc using the reset button since I couldn't figure out how to exit the linuxloader witha particular command or button. Now the calculator hangs at the grayscreen right after the TI-Nspire loading screen and it won't do anything else. I have already tried uninstalling and reinstalling the os as well as formatting the calculator but it does not work. HELP!!
« Last Edit: November 05, 2012, 02:48:25 am by xacto »

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Re: Calling all Linux Kernel developers!
« Reply #190 on: November 05, 2012, 07:09:33 am »
xacto, hold Esc+Menu+Minus while booting. AFAIK, this happens when the bootloader doesn't boot anything and then resets.
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #191 on: November 05, 2012, 07:26:49 am »
Do that, and if that doesn’t work, for some strange reason I think it might also help to send os 3.2, and then downgrade if it works again.

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #192 on: November 05, 2012, 12:22:24 pm »
xacto, hold Esc+Menu+Minus while booting. AFAIK, this happens when the bootloader doesn't boot anything and then resets.
Thank you so much it worked! I was starting to get worried for a moment.

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #193 on: November 05, 2012, 10:18:42 pm »
i still cant get it to work..... T.T

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #194 on: November 06, 2012, 12:18:35 am »
On the idea of porting the nspire emu to the nspire, it would run unbearably slow, and I don't think all the libraries necessary to run it are ported. Also, running it would require an equal amount of RAM and Flash to what the calculator has, plus whatever runs underneath it.

Sorry. Not gonna happen. It would be far easier to make a mod that added keyboard support.