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

0 Members and 5 Guests are viewing this topic.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #165 on: November 01, 2012, 03:35:55 am »
snes9x is written in C++, and Ndless doesn't yet support proper program relocation - which is one of the prerequisites to such basic C++ features as vtables (see http://blog.tangrs.id.au/?p=719 for more detailed technical information).
I know that ExtendeD has worked on integrating tangrs' bFLT loader into Ndless, I don't know what the current state of that work is.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #166 on: November 01, 2012, 03:42:20 am »
Ah ok. Sorry again if the question was stupid, I didn't know anything about that snes emulator. Thanks for answering me with a lot of details :)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Calling all Linux Kernel developers!
« Reply #167 on: November 01, 2012, 06:24:46 am »
Great work Tangrs! I assume it will be possible to have a Debian rootfs with an X-server?
Will try when I get some time.

Already working on it :)

Great! :)

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #168 on: November 02, 2012, 04:42:08 am »
Two questions:
What is the build login for. I just enter root and it works but are there other locations we can login to as well?
Does it matter what cmdline you set?

Some people need a high five in the face... with a chair.
~EC

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #169 on: November 02, 2012, 04:44:39 am »
* for logging in with a password / with other users, you'd have to create entries in /etc/passwd, passwords in /etc/shadow, and such things :)
* if you're talking about the cmdline passed to the kernel, it does indeed matter.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #170 on: November 02, 2012, 04:52:58 am »
I see, so what does the cmdline do?
Also found out how to get the | key so ls | less can be used :D shift + flag does the trick (flag is in the lower right corner, below the ?! button) Scrolling can be done with b and f and exiting with q (sorry if someone else already found this, I thought it could be useful)

Some people need a high five in the face... with a chair.
~EC

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #171 on: November 02, 2012, 04:55:12 am »
I see, so what does the cmdline do?
Also found out how to get the | key so ls | less can be used :D shift + flag does the trick (flag is in the lower right corner, below the ?! button) Scrolling can be done with b and f and exiting with q (sorry if someone else already found this, I thought it could be useful)

The keymap can be found in the source code at arch/arm/mach-nspire/nspire.c at around line 197. Match it up with the touchpad keymap found on the hackspire.

Btw, Doc is PgUp, Menu is PgDown. Hold shift while pressing them to scroll in the framebuffer.
« Last Edit: November 02, 2012, 04:55:36 am by tangrs »

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #172 on: November 02, 2012, 06:52:13 am »
Took some time to write them all out in a text file :) It can be found in the attachment or here. Please notify when something is wrong :)

Some people need a high five in the face... with a chair.
~EC

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #173 on: November 02, 2012, 06:10:37 pm »
Have you considered trying to use one of the Nspire emulators to get it running on the non-CX's?
Omnimaga Admin

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Calling all Linux Kernel developers!
« Reply #174 on: November 02, 2012, 07:07:09 pm »
Have you considered trying to use one of the Nspire emulators to get it running on the non-CX's?

Right now it can't run Linux because of some emulation issues.

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #175 on: November 02, 2012, 10:06:03 pm »
Just wondering, how to you get video to work?

I didn’t do anything about the rootfs because I didn’t know where I needed to change that. (also I don’t really know what it means by “your usb device”)

Many different things happen when I try many different things. If I boot with linuxloader2, wait for it to get to the login request, and then put my flash drive in the dongle, it just spews out that the cache failed
If I put the flash drive in immediately after running bootloader in linuxloader2, it seems to register it, I think, but when I run mplayer, it outputs –sh mplayer: not found.
Then it outputs some error about the flashdrive, with /64

Whenever I do it the normal way by just running the bootloader_usb.ll2.tns file, depending when I put the flash drive in, it displayes different things, but it always, ALWAYS, results in it kind of freezing with the last text being (ret_from_fork+0x14/0x24)

Anyone know what I’m doing wrong?

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #176 on: November 02, 2012, 10:10:33 pm »
Just wondering, how to you get video to work?

I didn’t do anything about the rootfs because I didn’t know where I needed to change that. (also I don’t really know what it means by “your usb device”)

Many different things happen when I try many different things. If I boot with linuxloader2, wait for it to get to the login request, and then put my flash drive in the dongle, it just spews out that the cache failed
If I put the flash drive in immediately after running bootloader in linuxloader2, it seems to register it, I think, but when I run mplayer, it outputs –sh mplayer: not found.
Then it outputs some error about the flashdrive, with /64

Whenever I do it the normal way by just running the bootloader_usb.ll2.tns file, depending when I put the flash drive in, it displayes different things, but it always, ALWAYS, results in it kind of freezing with the last text being (ret_from_fork+0x14/0x24)

Anyone know what I’m doing wrong?


Are you sure you're using the USB host kernel? And did you image the rootfs onto the USB drive?

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #177 on: November 02, 2012, 10:35:59 pm »
No, I’m using everything in the snapshot download, and the most recent initrd, and I was able to get the keyboard working, but I never did
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).
And my dongle has 4 usb ports, with my calc connected to the mini usb port, using the cord meant for calc to calc transfers, if that makes any difference.
And I don't think I imaged the rootfs onto the USB drive.
Could you make a tutorial?

-- Posts Merged --

Also, do you have a usb to headphone jack?
Because I notice in the video it says nosound, so would it be easily possible to get sound on the nspire?
Because it would be awesome to watch videos with sound and listen to music on an nspire.

-- Posts Merged --

This is some of the output when I plug flash drive
sd 6:0:0:0:[sdb] Media changed
sd 6:0:0:0:[sdb]
sd 6:0:0:0:[sdb]
sd 6:0:0:0:[sdb]
sd 6:0:0:0:[sdb] CDB:
end_request: I/O error, dev sdb, sector 0,
Buffer I/O error on device sdb, logical block 0 sdb: unable to read partition table
sd 6:0:0:0:[sdb] No Caching mode page present
sd 6:0:0:0:[sdb] Assuming drove cache: write through
sd 6:0:0:0:[sdb] Attached SCSI removable disk
« Last Edit: November 02, 2012, 11:06:06 pm by Netham45 »

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #178 on: November 02, 2012, 10:58:46 pm »
No, I’m using everything in the snapshot download, and the most recent initrd, and I was able to get the keyboard working, but I never did
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).
And my dongle has 4 usb ports, with my calc connected to the mini usb port, using the cord meant for calc to calc transfers, if that makes any difference.
And I don't think I imaged the rootfs onto the USB drive.
Could you make a tutorial?


For Linux/Mac/BSD/*nix, it's basically just using dd. Something like sudo dd if=rootfs.ext2 of=/dev/sdX (replace sdX with your USB device - make sure you get it right or else say bye bye to your data)

Unfortunately, I haven't used Windows for a while so I don't know what they use for drive imaging.

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 #179 on: November 02, 2012, 11:57:18 pm »
This Project should do the job, or something similar.

I still think that it would be more worthwhile to port an ARM-specific SNES emulator than it would Snes9x. It would probably be easier, too. Dr. PocketSNES, for instance, ran most games at 100% on the GP2x, and might do even better sans sound.
« Last Edit: November 03, 2012, 02:23:24 am by willrandship »