Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: noobnonin on November 15, 2012, 01:48:03 pm

Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 01:48:03 pm
vogtinator

can you please tell me how to install the links on the ti nspire or if its already posted can you tell me where and how
thanks..

Regards
Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 02:11:03 pm
From what I can tell it's already in the image. Just type links in the command line, press enter and it should work.


it says " -sh :links: not found "
Title: nspire Linux Questions
Post by: Eeems on November 15, 2012, 02:13:58 pm
Quote
it says " -sh :links: not found "
Well try what was said before your post. If trying to run links still says command not found try running this: /usr/bin/links
Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 02:31:43 pm
Quote
it says " -sh :links: not found "
Well try what was said before your post. If trying to run links still says command not found try running this: /usr/bin/links

still not found.... T.T

is it because my rootfs is not mounted?

i have this message when starting:

" waiting 10 sec before mounting root device..
Ramdisk: ext2  filesystem found at block 0
Ramdisk: Loading 2061Kib (1disk) into ram disk.. done
VFS: mounted root (ext2 file system) on device 1:0

Welcome to buildroot
Buildroot login: root.... etc.... then i type /usr/bin/links.... still not found  "


Regards,
Title: nspire Linux Questions
Post by: Eeems on November 15, 2012, 02:34:23 pm
Quote
still not found.... T.T
Did you do what was said before your post first?
Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 02:51:23 pm
Quote
waiting 10 sec before mounting root device..
Ramdisk: ext2  filesystem found at block 0
Ramdisk: Loading 2061Kib (1disk) into ram disk.. done
Quote
Don't use a initrd! It's not needed and you can't save anything!
Use an USB-Stick as root fs!


so the usb should be in ext2? or fat?
Title: nspire Linux Questions
Post by: Vogtinator on November 15, 2012, 02:57:26 pm
Quote
so the usb should be in ext2? or fat?
If you use my kernel (which you should, as X is working), use ext4.
If you crash with ext2, it may become corrupt.
Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 03:04:09 pm
errr if the rootfs its in the ram, i cant open links? theres no directory to it if its in the ram?
Title: nspire Linux Questions
Post by: Vogtinator on November 15, 2012, 03:07:32 pm
Quote
otfs its in the ram, i cant open links? theres no directory to it if its in the ram?
You use an initrd which gets loaded into ram.
Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 03:15:05 pm
vogtinator, did u used dd if=rootfs.ext2 of=/dev/sdb ?? on linux?, are you using a usb with an ext4 format?? and is the usb if u are not, then how did you do?

Regards,
Title: nspire Linux Questions
Post by: Vogtinator on November 15, 2012, 03:22:30 pm
Do the following: (/dev/sda = USB-Stick)
1. mkdir /tmp/mount
2. mkfs.ext4 /dev/sda
3. mount /dev/sda /tmp/mount (ignore warnings)
4. tar -xvf rootfs.tar.bz2 -C /tmp/mount (The rootfs.tar.bz2 I posted before, download with `wget http://ritter-vogt.dyndns.biz/lowlevel/rootfs.tar.bz2`)
5. umount /tmp/mount
6. Enjoy!

Edit: You have to use my kernel, too.

Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 03:35:15 pm
right away bro ur the best!! XD


can you post your kernel too??
thanks

Regards,
Title: nspire Linux Questions
Post by: Vogtinator on November 15, 2012, 03:42:47 pm
I posted it here (http://ourl.ca/17131/323635)
Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 08:46:26 pm
Vogtinator, i had a problem look

Title: nspire Linux Questions
Post by: willrandship on November 15, 2012, 09:04:15 pm
Try opening it with the GUI unarchiver. If it also errors, you probably got your archive corrupted at some point along the way. If it extracts normally, just follow the instructions from there as if tar had worked.
Title: nspire Linux Questions
Post by: tangrs on November 15, 2012, 09:25:51 pm
Try using tar -xvjf
Title: nspire Linux Questions
Post by: noobnonin on November 15, 2012, 10:03:54 pm
[email protected]:~# tar -xvjf rootfs.tar.bz2 -C/tmp/mount

bzip2: Compressed file ends unexpectedly;
   perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
   Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error is not recoverable: exiting now
[email protected]:~# =(


sup tangrs xd
Title: nspire Linux Questions
Post by: tangrs on November 15, 2012, 11:12:45 pm
Maybe a corrupted download?
Title: nspire Linux Questions
Post by: Vogtinator on November 16, 2012, 01:24:38 am
Yeah, try downloading it again. On my server and laptop it works fine.
Title: nspire Linux Questions
Post by: aeTIos on November 16, 2012, 05:53:28 am
Maybe split all those help posts into a separate topic and keep this topic for updates?
And woot :D
Title: nspire Linux Questions
Post by: linuxgeek96 on November 16, 2012, 08:42:31 pm
Hey Omni,

I tried using mkfs.ext /dev/sda, but once I partitioned, I couldn't mount the full disk. Any ideas?
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 07:02:50 am
Partitioning overwrites the first 512 Bytes of your USB-Stick, making it's filesystem corrupt.
If you want to use the whole disk, you mustn't partition it!
But if you want to partition, do it first, then mkfs.ext4 /dev/sda1.
If you really partition /dev/sda on your computer, make sure it's your USB-Stick, else your data will be lost, be careful!
Title: nspire Linux Questions
Post by: linuxgeek96 on November 17, 2012, 08:12:30 am
vogtinator, I don't have a problem with formatting the disk, but instead with mounting the resulting partition, as I get an "Invalid argument" error. Sorry if I'm making some n00b mistake, usually I actually partition my disks :P
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 08:14:40 am
If you partition /dev/sda, you have to mkfs.ext4 /dev/sda1, then mount it.
You have to use partprobe to reread the partition table, if it's not automatically invoked.
Title: nspire Linux Questions
Post by: linuxgeek96 on November 17, 2012, 08:15:59 am
I _don't_ want to partition, I want to use the full disk, but I can't mount it now.
EDIT: but isn't there no partition table if you mkfs.ext4 the whole disk?
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 10:23:49 am
If you format the whole disk, the partition table becomes invalid.
So format it, unplug and replug it (or use partprobe) and mount it. (`mount -t ext4 /dev/sda /media`)
Title: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 12:17:41 pm
vogtinator,

i have the same error, i downloaded your rootfs.tar and when im going to  tar -xvf rootfs.tar.bz2 -C /tmp/mount  it says that the file is corrupted,
btw my /dev/sda is my hdd so my usb is marked as" /dev/sdb " when i run the command " sudo fdisk -l ",still, i have the same error
Regards,
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 12:50:27 pm
One HDD (of two, RAID 1) from my server is faulty, maybe thats the cause.  >:(
I'll upload it to dropbox, if I can find my username  ;D
Could you please post the commands you're running?
rootfs.tar.bz2 (http://dl.dropbox.com/u/105478372/rootfs.tar.bz2)
zImage.tns (http://dl.dropbox.com/u/105478372/zImage.tns)
Title: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 12:56:06 pm
ok, well the commands are just the ones that i posted here http://ourl.ca/17131;msg=269705 

i just ran what u told me  tar -xvf rootfs.tar.bz2 -C /tmp/mount

i run sudo fdisk -l to see the name of my usb and the name is always /dev/sdb
thats all
Regards
Title: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 01:17:51 pm
ok i downloaded it again and ran " tar -xvf rootfs.tar.bz2 -C/tmp/mount"   but its giving me the same error as before =(

Regards,
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 01:23:17 pm
I'll download it myself and look whether it's really corrupt.. on my server it worked :-/

I downloaded it from dropbox, ran "bunzip2 rootfs.tar.bz2" and got no errors. Could you try to use bunzip2 too?



Does it work now?

Edit(Eeems): Merged double post
Title: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 01:37:26 pm
ok, tks bro

oks this is what i have when i run bunzip

[email protected]:~$ su -
Password:
[email protected]:~# bunzip2 rootfs.tar.bz2

bunzip2: Compressed file ends unexpectedly;
   perhaps it is corrupted?  *Possible* reason follows.
bunzip2: No such file or directory
   Input file = rootfs.tar.bz2, output file = rootfs.tar

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

bunzip2: Deleting output file rootfs.tar, if it exists.
[email protected]:~#
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 01:38:56 pm
Quote
bunzip2: No such file or directory
Please read your error messages..
Title: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 01:43:38 pm
yep, i dled it from box, ur last post

[email protected]:~$ su -
Password:
[email protected]:~# file rootfs.tar.bz2
rootfs.tar.bz2: empty
[email protected]:~#
[email protected]:~# start rootfs.tar.bz2
start: Unknown job: rootfs.tar.bz2
[email protected]:~#
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 01:46:21 pm
Quote
rootfs.tar.bz2: empty
DL it again, with wget and post your output.
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 01:50:31 pm
What information should I get from that picture?
As I wrote, please download it using wget and post the output!
Title: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 01:50:54 pm
wait, and pardon me the noob question but.... whats wget? o.o

ok, im dlding it with wget now XD

ok bro calm down XD ive never used linux before sorry... xd
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 01:53:49 pm
Wget is a program that downloads files via ftp, http and many other protocols.
`wget <url>`
Quote
ive never used linux before sorry... xd
This explains why you are using Ubuntu. With Unity.
Title: nspire Linux Questions
Post by: aeTIos on November 17, 2012, 01:54:26 pm
Admin, please split this into a separate topic. This topic gets hijacked too much and it gets pretty annoying. x.x
Title: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 01:59:37 pm
Yeah, that would really be better.
Title: Re: nspire Linux Questions
Post by: Eeems on November 17, 2012, 02:08:25 pm
Admin, please split this into a separate topic. This topic gets hijacked too much and it gets pretty annoying. x.x
Done
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on November 17, 2012, 02:11:28 pm
Also it might be a good idea to remain polite towards Linux newbies if they are just starting to use Linux (I wonder if the Nspire can even run Ubuntu/Mint and if those fit on a flash drive?)
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 02:15:27 pm
Quote
Also it might be a good idea to remain polite towards Linux newbies if they are just starting to use Linux (I wonder if the Nspire can even run Ubuntu/Mint and if those fit on a flash drive?)
Am I not polite enough? I hate Ubuntu, but it's the best Distro to begin with (if you uninstall Unity..)
Yes, it'd run, but only < 9.10, as they droppen armv5 support..
Debian and openSUSE run, but openSUSE is slow as hell and I'm currently searching for an alternative.
Almost everything that runs on the Raspberry Pie should run on the nspire too, but much slower.
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on November 17, 2012, 02:20:46 pm
As I wrote, please download it using wget and post the output.

Polite

As I wrote, please download it using wget and post the output!

Agressive

:P

(Not as rude as if there was all caps, insults or even more unnecessary exclamation marks, though, just kinda warning in case it would escalate and I understand the other guy also needs to do his homework so that you guys can help him help himself)

Also I was a bit concerned about the Ubuntu suggestion because I seriously doubt such graphical-intensive distro will even get close to run on a TI-Nspire (it has 64 MB of RAM and a 150 MHz CPU). And lol where I live the biggest stick I ever saw was 32 GB for $40 or so. I can't imagine how expensive a 512 GB stick would be... O.O

EDIT: Wow, SMF QUOTE bbcodes are total garbage lol
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 02:31:14 pm
Quote
Agressive
But I wrote "please"  :P
Quote
Also I was a bit concerned about the Ubuntu suggestion because I seriously doubt such graphical-intensive distro will even get close to run on a TI-Nspire (it has 64 MB of RAM and a 150 MHz CPU)
It will run. Theoretical. Practical the battery will be empty until it's loaded  ;D

Quote
the biggest stick I ever saw was 32 GB for $40 or so. I can't imagine how expensive a 512 GB stick would be...
499€ (~636 $)

Quote
EDIT: Wow, SMF QUOTE bbcodes are total garbage lol
Yeah, every second time my whole post is a quotation because of a missing '/'..
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on November 17, 2012, 02:49:46 pm
By empty battery, do you mean it will just take so long to boot that the battery will be dead by then or do you mean that it will just empty the battery in a few minutes/seconds? The latter would be kinda scary >.<
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 03:04:56 pm
Quote
By empty battery, do you mean it will just take so long to boot that the battery will be dead by then or do you mean that it will just empty the battery in a few minutes/seconds? The latter would be kinda scary >.<
No, even overclocked it needs almost no power.
It went from 75% down to 50%, running ~3 hours. Backlight stayed on the whole time
Title: Re: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 03:15:06 pm
vogtinator, i made it thanks so much bro

just one last last question xd
how do u have internet connection? o.o do you use an external powered hub?

yeah sorry xd
Title: Re: nspire Linux Questions
Post by: aeTIos on November 17, 2012, 03:17:14 pm
You accidentally double posted.
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 03:24:55 pm
Quote
how do u have internet connection? o.o do you use an external powered hub?
You NEED an external hub to connect to something other than a single USB-Stick.
To get Internet, do you have any USB-Device that could be useful? Fritz!BOX, USB-Ethernet-Adapter from Wii, WLAN Stick?
I don't think Bluetooth will work, first USB 2.0 has to be working
Title: Re: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 03:33:13 pm
yeah i have a hub and the ti nspire loads the rootfs from the usb everything fine, but i mean when i connect a wifidongle + the usb that has the rootfs it shows errors right and tangrs said it was better to have an external powered hub so the question should be more like.... how can i connect both? or how can i connect a wireless hub, when you connected the fritz, did you have the usb too?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 17, 2012, 03:56:19 pm
Yes, I'm using four devices right now(stick, mouse, keyboad, fritzbox).
AFAIK the nspire only supports 6 max. (incl. hub) so only one more is possible.
Title: Re: nspire Linux Questions
Post by: Eeems on November 17, 2012, 06:50:24 pm
I hate Ubuntu, but it's the best Distro to begin with
I would say Mint is even better to start with. I started with Arch Linux though, so I don't know if my opinion of what would be better for beginners really counts :P
Title: Re: nspire Linux Questions
Post by: gtugablue on November 17, 2012, 06:53:44 pm
Hi, I've been thinking and I hope this isn't too stupid but wouldn't it be possible to use an Android device instead of all that separate hardware? Advantages:
- if someone gets it to work it will work for everyone else because the OS is the same
- the Android phone has a battery so no need for a powered USB hub
- it can connect to the internet via mobile data/wi-fi and tether it to the calculator
- it can have a virtual keyboard/mouse and store data just like a USB flashdrive.

Maybe it's not possible but just giving an idea.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 17, 2012, 09:45:23 pm
yeah maybe we can make it levitate too! o.O

Xd sorry im just too happy because it ran xd
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on November 18, 2012, 12:06:53 am
I wonder if Nspire Linux USB would run on USB1.1 since I know some people still has that?
Title: Re: nspire Linux Questions
Post by: Hayleia on November 18, 2012, 01:23:46 am
Hi, I've been thinking and I hope this isn't too stupid but wouldn't it be possible to use an Android device instead of all that separate hardware? Advantages:
- if someone gets it to work it will work for everyone else because the OS is the same
- the Android phone has a battery so no need for a powered USB hub
- it can connect to the internet via mobile data/wi-fi and tether it to the calculator
- it can have a virtual keyboard/mouse and store data just like a USB flashdrive.

Maybe it's not possible but just giving an idea.
Isn't the Android Device more expensive than "all of that separate hardware" ?
Moreover, connecting an Android to the calc is not really expanding the calc's capability. I mean, once you have an Android device, all you have to do is run Linux on it and only use the calc as a screen, and that is not really a calc challenge.
And I also guess that nobody would use it since once you have an android device, you don't really need your calc to run Linux to go to the Internet ;)

So really, no, I think the project is great as it is, with "all of that separate hardware" :)
Title: Re: nspire Linux Questions
Post by: aeTIos on November 18, 2012, 06:09:38 am
I agree with Hayleia :)
I wonder if Nspire Linux USB would run on USB1.1 since I know some people still has that?
About this, I think it will DJ_O.
Title: Re: nspire Linux Questions
Post by: gtugablue on November 18, 2012, 03:02:21 pm
Seems like someone had the same idea :D

http://ourl.ca/17522
Title: Re: nspire Linux Questions
Post by: noobnonin on November 23, 2012, 02:40:42 pm
i need to know how to configure the network with a usb wi fi dongle pls :D

thanks...
Title: Re: nspire Linux Questions
Post by: Eeems on November 23, 2012, 02:43:32 pm
Make sure you have the right driver for your wifi dongle and then I would assume that this would work
http://www.ghacks.net/2009/04/14/connect-to-a-wireless-network-via-command-line/
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on November 23, 2012, 02:44:23 pm
tangrs provided a bit of information about that topic alongside his video ;)
dhclient / dhcpcd / whatever DHCP client, wpa_supplicant, and stuff like that.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 23, 2012, 03:04:20 pm
Eeems, i have a problem with the first step,
when i type "ifconfig wlan0 up" then i have an error that says : "SIOCGIFFLAGS: No such device"

Regards
Title: Re: nspire Linux Questions
Post by: Eeems on November 23, 2012, 03:25:28 pm
Well replace wlan0 with whatever device name linux is using for your usb dongle. type ipconfig and see what's there.
Title: Re: nspire Linux Questions
Post by: Eeems on November 23, 2012, 03:57:48 pm
Sorry, ifconfig.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 23, 2012, 04:09:03 pm
ok when i type ifconfig this displays:

lo                link encap:Local Loopback
                  inet addr.127.0.0.1  Mask: 255.0.0.0
                  UP LOOPBACK RUNNING MTU: 65536   metric: 1
                  RX Packets: 0 Errors: 0 Dropped: 0 overruns:0
frame:0
                  TX packets :0 errors:0 Dropped: 0 overruns:0 frame:0
carrier:0
                  collisions :0 txquelen:0
                  RX bytes:0 (0.0 B) Tx  bytes:0 (0.0 B)
Title: Re: nspire Linux Questions
Post by: floris497 on November 23, 2012, 04:10:07 pm
where can i find the boot-loader or something, is there a clean list of things you need that gets updated?
Title: Re: nspire Linux Questions
Post by: Eeems on November 23, 2012, 04:12:15 pm
noobnonin: try iwconfig. What is the output for that?
Title: Re: nspire Linux Questions
Post by: noobnonin on November 23, 2012, 04:15:32 pm
it says:
Lo      no wireless extensions

tun10  no wireless extensions

floris what do you need ? bootloader? what do you want to do?

Edit(Eeems): Merged double post
Title: Re: nspire Linux Questions
Post by: Eeems on November 23, 2012, 04:17:20 pm
noobnonin: Then you didn't get the right drivers for your usb dongle compile into the kernel.
Also, noobnonin. Please don't double post.
Title: Re: nspire Linux Questions
Post by: floris497 on November 23, 2012, 04:18:15 pm
i want to run linucx on my cx calc, but i cant find all the files i need :S i need linuxloader2.tns i think. cant find it anywhere
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 23, 2012, 05:09:03 pm
Loader and bootscript from http://ourl.ca/17131;msg=266194 (http://ourl.ca/17131;msg=266194).
Kernel and root file system from http://ourl.ca/17131/323635 (http://ourl.ca/17131/323635)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 24, 2012, 08:29:45 am
vogtinator, i need to have this driver " 1737:077 "  in my kernel, how can i do it?

Regards...
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on November 24, 2012, 09:19:41 am
Code: [Select]
drivers/net/wireless/rt2x00/rt2800usb.c:1011:   { USB_DEVICE(0x1737, 0x0077) },Therefore, I think you want to activate CONFIG_RT2X00.

According to the USB IDs list, the 1737 VID corresponds to Linksys, and the 0077 PID corresponds to WUSB54GC v3 802.11g Adapter [Ralink RT2070L].
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 24, 2012, 10:53:22 am
Hm, I googled "Ralink RT2080L linux" and it seems to need firmware..
I hate it, as these things tend to get quite annoying  >:(
Title: Re: nspire Linux Questions
Post by: floris497 on November 24, 2012, 11:26:36 am
Thanks for the help :)

Still one little question how do I exit Linucx the only way I found was by typing reboot but that will reboot the I tire device. So is there a better way?
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on November 24, 2012, 11:38:40 am
Nope: just like TI's OS (which Linux completely replaces in RAM), the best way to reboot the OS is to reboot the calculator :)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 24, 2012, 01:02:49 pm
how bout if i get another wifi dongle? how do i install drivers??
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 24, 2012, 01:22:51 pm
No, try it with CONFIG_RT2X00.
http://ourl.ca/17131/325155 (http://ourl.ca/17131/325155)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 24, 2012, 01:49:00 pm
is that for the kernel?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 24, 2012, 01:50:32 pm
Yeah, you have to build a kernel with your driver integrated.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 24, 2012, 01:53:50 pm
once the kernel is done, do i have to change the rootfs of the usb too? o.o
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 24, 2012, 01:54:59 pm
No. You only have to build new programs if you need them.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 11:17:40 am
omg so close!! XD NOOOOOO i have a problem, when i type ifconfig wlan0 up then it appears phy0-> rt2x00lib_request_firmware: Error- failed to request firmware.
ifconfig: SIOCSIFFLAGS: No such file or directory
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on November 25, 2012, 11:19:29 am
As Vogtinator (IIRC) mentioned somewhere else, that chip requires firmware... so you'll have to include that into your rootfs somehow.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 11:27:18 am
what if i have a wifidongle that doesnt requires firmware, does that exists?? o.O

what i mean is, does wifidongles without firmware exists??
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 12:25:18 pm
Quote
what if i have a wifidongle that doesnt requires firmware, does that exists?? o.O
No, you don't. The error message says the driver is looking for firmware.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 12:56:14 pm
how can i get this firmware on my rootfs? o.O can someone help me with that?
isnt this error just telling me that drivers are not compatible?
Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 01:26:06 pm
No, just that the driver can't find the firmware.
Copy /lib/firmware/rt2870.bin on your USB-stick into the same directory. (The filename is no typo)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 01:34:22 pm
how do i write the command? cp linux-firmware/rt2870.bin /dev/sdc/lib/firmware/rt2870.bin like this?, i dont have to make a buildroot? just copy?

Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 01:34:48 pm
No. Mount it.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 02:12:05 pm
" mount linux-firmware/rt2870.bin /dev/sdc/lib/firmware/rt2870.bin "like this?

could you maybe write the command? :D

Regards,
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on November 25, 2012, 02:13:00 pm
cp instead of mount would certainly be better ;)
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 02:13:21 pm
No.. The USB stick.
mount /dev/sdc /media
mkdir /media/lib/firmware
cp /lib/firmware/rt2870.bin /media/lib/firmware/rt2870.bin
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:11:51 pm
ok vogtinator, i got the firmware with sudo apt-get install git-core
git clone http://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

then i ran mount /dev/sdc /media
mkdir /media/lib/firmware
cp /lib/firmware/rt2870.bin /media/lib/firmware/rt2870.bin

and when i put ifconfig wlan0 up it the led blinked

then i ran ifconfig and it says wlan0 link encap:Ethernet HWadd 68:7F:74:6A:45:4D

is everything ok there¡¡?? did i do fine?
Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 03:16:57 pm
Yes, everything looks fine.
But why did you clone linux-firmware?
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:19:02 pm
idk XD, im noob XD

now how can i detect the wifinets? where do they appear or with what command?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 03:20:07 pm
http://ourl.ca/17509/325168 (http://ourl.ca/17509/325168)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:27:51 pm
omg another problem T.T

when i put "iwlist wlan0 scan" then it says: "interface doesnt support scanning"
regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 03:28:52 pm
Are you root?

Edit2: Try to use iwconfig wlan0 up before scanning.
If that doesn't work, run iwconfig and post output.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:32:29 pm
yep, im running commands in the ti nspire
Title: Re: nspire Linux Questions
Post by: alberthrocks on November 25, 2012, 03:33:44 pm
yep, im running commands in the ti nspire

Doesn't mean you're root. Type whoami to check. If the output says root, then yup - otherwise, become root!
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:34:23 pm
it says im root :D
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 03:37:38 pm
Run iwconfig wlan0 up.
If it doesn't work, post output of iwconfig.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:44:24 pm
its not "iwconfig wlan0 up" its "ifconfig wlan0 up"   cause when i run "iwconfig wlan0 up" it says "up" command not found

when i run "ifconfig wlan0 up" it sends me back to root, like when you mount a dev and nothing happens but is already mounted XD , it gives me no firmware errors, like its working

the output of my iwconfig is this:

lo        no wireless extensions

tun10  no wireless extensions

wlan0  no wireless extensions
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 03:48:13 pm
Run dmesg and post the parts which seem suspicious to you.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:50:12 pm
everything seems fine to me....
the part where it says wlan0 no wireless extensions

should something appear there???

Regards,
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 03:51:55 pm
mhmmm theres something fishy here XDDDDDDD

when i put ifconfig wlan0 up then the led of the hub starts dying, like its sucking my batteries off XD does it means the wifidongle is working???

Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 03:53:47 pm
Yes, something like "not associated".

Then post the entire output of "dmesg | grep wlan"
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 04:00:24 pm

wait, having problems now, seems like my usb dongle heats and sucks all the power from my batteries XD
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 04:01:38 pm
From which batteries?
POWER IT EXTERNALLY OR YOU WILL KILL YOUR CALC!!!!1oneleven

Edit: You double-posted.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 04:05:43 pm
XDD calm down bro, i made an externally power circuit chill XDD
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 25, 2012, 04:06:37 pm
Your circuit is crap then.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 25, 2012, 04:10:03 pm
nah, batteries are just low
thats all



well, nothing suspicious, i cant post all demseg right now cause when its configured the wifi dongle wastes too much energy

but where do i see networks?, when i " iwlist wlan0 scan " says: " interface doesnt support scanning"  o.O



it doesnt detect networks, and i already put the wifi T.T

when i run ifconfig wlan0 up, the led turns on but it doesnt detect the network
btw the led doesnt blinks, is turned on...... just like that....

this is what i should get when i type iwconfig
[email protected]:~# iwconfig
wlan0     IEEE 802.11bg  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
         
lo        no wireless extensions.

eth0      no wireless extensions.


but in the calculator when i type iwconfig, everything says no wireless extensions
help pls?



Edit(Eeems): merged triple post
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 26, 2012, 08:06:54 am
Wow, triple post, new highscore :-P
As I said, the only thing you could do is posting the output of "dmesg | grep wlan".
Title: Re: nspire Linux Questions
Post by: noobnonin on November 26, 2012, 09:05:35 am
when i put the comand grep wlan, it freezes....

"dmesg | grep wlan". where is that little bar in the calculator? o.O

found it xd its shift flag
Title: Re: nspire Linux Questions
Post by: Jim Bauwens on November 26, 2012, 09:10:08 am
It's not frozen, just listening for data from stdin. You can press ctrl-c to get out of that.
You need to enter "dmesg | grep wlan".
Title: Re: nspire Linux Questions
Post by: noobnonin on November 26, 2012, 09:22:06 am
ok i entered "dmesg | grep wlan
 it says: usbcore:registered new interface driver rndis_wlan
something wrong with that?? o.O

sup jim :3
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 26, 2012, 10:02:07 am
Hm, there should be more..
"cat /var/log/messages | grep wlan" maybe?
Or try "firmware" instead of "wlan"
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 26, 2012, 11:39:36 am
Quote
"cat /var/log/messages | firmware"
"cat /var/log/messages | grep firmware"
Quote
"demsg | grep firmware"
"dmesg | grep firmware"
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 26, 2012, 02:05:33 pm
try ifup wlan0 and iwlist wlan0 scan before
Title: Re: nspire Linux Questions
Post by: noobnonin on November 26, 2012, 02:40:43 pm
i tried these commands after and before running the command "ifconfig wlan0 up" ... btw when i run it the led from the wifidongle turns on but it doesnt blinks, it´s just turned on...

when i write : "ifup wlan0"
"ifup: ignoring uknown interface wlan0"

when i write: "iwlist wlan0 scan
"wlan0    interface doesnt support scanning"

"cat /var/log/messages | grep firmware" nothing appears....

"dmesg | grep firmware" nothing appears....

Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 26, 2012, 02:49:14 pm
Run iwconfig.
It's very strage ifconfig wlan0 up works but ifup wlan0 doesn't.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 26, 2012, 03:15:13 pm
if i run iwconfig

lo            no wireless extensions

tun 10     no wireless extensions

wlan0       no wireless extensions
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 26, 2012, 03:19:59 pm
After running ifconfig wlan0 up?
Title: Re: nspire Linux Questions
Post by: noobnonin on November 26, 2012, 04:00:39 pm
yes
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 26, 2012, 04:45:41 pm
But didn't that work before?
Title: Re: nspire Linux Questions
Post by: noobnonin on November 26, 2012, 04:55:52 pm
 the led of the usb wifi dongle turns on when i input the command "ifconfig wlan0 up" but it doesnt scans networks and i have the wifi on

so.... it doesnt works...
Title: Re: nspire Linux Questions
Post by: Jim Bauwens on November 26, 2012, 06:16:12 pm
You might need to recompile your kernel.
See http://www.linuxquestions.org/questions/linux-wireless-networking-41/wlan0-no-wireless-extension-907830/
Title: Re: nspire Linux Questions
Post by: noobnonin on November 26, 2012, 06:26:49 pm
ok, i made it by iw wlan0 scan, the usb blinks and scans, and it gets my wifi net but then there is one last problem T.T

ok pls read this: when i type  "iwconfig wlan0 essid NETWORK_ID key WIRELESS_KEY"   btw my network id is "lol" and my wireless key is EF1923308FF252D253BB2FD8BD

this is the output:

" Error for wireless request "SET ESSID" (8B1A) :
     SET failed on device wlan0; operation not supported "

and i already tried

 "ifconfig wlan0 down"
"iwconfig wlan0 mode managed"
" ifconfig wlan0 up "
"airmon-ng wlan0 stop" btw airmon command not found... is not supported
the result is the same set failed .... not supported..

PD: sup jim :DD im ur biggest fan >.<
Title: Re: nspire Linux Questions
Post by: willrandship on November 27, 2012, 01:33:39 am
See how iwconfig says "no wireless extensions"? That means your linux doesn't know how to use the wireless via iwconfig yet. Something else is wrong (probably driver-related)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 09:21:18 am
i have the kernel of vogtinator, and i did this http://ourl.ca/17509;msg=271357
to get the firmware of that wifidongle

i think it should be driver problem because of the no wireless extensions
yet i dont know how to compile kernel and buildroot T.T
when i try the tutorial of vogt i fail.... im noob xd
can someone help me out there

btw, what if i change my wifi dongle, or can i use a usb modem??? any idea?
in the video where tangrs uses links with his calculator, i saw that he has a d-link wifi..... i think thats a dongle, but i see its always blinking, mine doesnt blinks....
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 09:35:29 am
If we can't get any error messages, we can only guess what's the cause.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 09:36:59 am
i posted all the errors XD

this is the final error  http://ourl.ca/17509;msg=271586

good day fabian :D
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 09:39:55 am
That's only a symptom..
My next guess would be: Are you using WPA?
It's not supported directly by the kernel, only through wpa_supplicant.
So try to use WEP or no encryption at all to test it.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 09:45:07 am
errr, now i cant startx xd

look it says:

primary device is not PCI
(==) using default built-in configuration (12 lines)
(EE)FBDEV(0) : FB10PUT_VSCREENINFO: Invalid argument
(EE)FBDEV(0) : mode initialization failed

Fatal server error:
Addscreen/Screeninit failed for driver 0

Please consult the THE X.ORG Foundation support

please also check the log file at "/var/log/Xorg.0.log" for additional information

xinit: giving up
xinit: unable to connect to X server : connection refused
xinit: server error
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 09:46:47 am
If you look at the other thread, I found out I was (apparently) testing the wrong kernel.
I have to build another one, should be ready in ~3 min.

Edit: Ready, but not tested: http://dl.dropbox.com/u/105478372/zImage.tns (http://dl.dropbox.com/u/105478372/zImage.tns)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 10:09:34 am
hey vogt, i dont have wpa supplicant? do i have to throw it in the usb?

btw is is the same command? just mount and cp to the usb?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 10:10:39 am
No. wpa_supplicant is a binary you have to compile. For now it would be easier for us to use WEP instead.

Edit: Oh, I was wrong, wpa_supplicant is, indeed, available. I don't know how to use it, but you'll find a lot of infos in the web. (Or use WEP)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 10:21:54 am
i tried ur kernel and..... its having problems, it doesnt boots the rootfs
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 10:22:25 am
What fails?
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 10:27:27 am
kernel panic, it doesnt boots my usb
it boots my initrd
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 10:28:48 am
Wow..
Wait a moment, I gonna test it.

Edit: It works flawlessly.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 11:08:38 am
do you have initird on ur bootscript?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 11:10:04 am
Bootscript + USB-Stick (partitioned)
Title: Re: nspire Linux Questions
Post by: Eeems on November 27, 2012, 11:12:08 am
What exactly is the kernel panic? Is it unable to find the boot script? Does something else fail? Usually kernel panics give more information then just "Kernel Panic"
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 11:18:55 am
vogt, can u post whats the scrip of ur bootscript?

ohhh ok ok my usb is not partitioned, so the bootscript loads /dev/sda
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 27, 2012, 11:20:25 am
kernel linux/zImage.tns
cmdline root=/dev/sda1 earlyprintk debug console=tty0 rootdelay=10
boot
Title: Re: nspire Linux Questions
Post by: noobnonin on November 27, 2012, 06:07:22 pm
vogt, can you compile a kernel with this:
CONFIG_PPP
CONFIG_PPP_FILTER
CONFIG_PPP_ASYNC
CONFIG_USB_SERIAL
CONFIG_USB_SERIAL_GENERIC
CONFIG_USB_SERIAL_OPTION
i dont know how... T-T
thats for a usb modem.... ill try with that
does tangrs calc with the dlink starts working as soon as he boots linux? or does he has to ifconfig wlan0 up ?? o.O Daniel?
btw im using WEP
Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 07:56:04 am
If WLAN works manually, you can write a script which setups the connection for you without problems.
http://dl.dropbox.com/u/105478372/zImage.tns (http://dl.dropbox.com/u/105478372/zImage.tns)
Title: Re: nspire Linux Questions
Post by: noobnonin on November 28, 2012, 09:18:57 am
look, about the error from set i do this " vi /etc/network/interfaces"

and this is the output :

Configure Loopback
auto lo
iface lo inet loopback
~
~
~
~
~
~
~
~
~
~
~
~
- /etc/network/interfaces 1/4 25%

do i have to change something in there? o.O



hey vogt!!! last kernel worked nice

look

iwconfig

wlan0    IEEE 802.11bg  ESSID: lol
            Mode: Managed     frequency :2.412 GHz    Acces point: 00:21:91:4C:32:88
                 bit rate= 1mb/s      tx-power =20dBm
           retry long limit : 7    RTS thr:off      Fragment thr:off
                        Encryption key off
                        Power management: On
                        link quality= 70/70     Signal level=-23dBm
         Rx invalid nwid:0     Rx invalid crypt:0      Rx invalid frag:0
         Tx excessive retries:0       invalid misc:0       missed beacon:0

:DD
but wait, when input dhclient wlan0  to set ip adress works fine but when i go to links still host not found...
do i have to configure links?
when i ping 192.168.0.1
i have an error: ping:sendto: network is unreachable

so close!! XD
Regards,
PD: i love you vogt :3

EDIT (Eeems): Merged double post
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 10:57:02 am
bit rate = 1mb/s is way too slow, when my laptop has only 1mb/s, network isn't working at all.
Maybe should should get closer to your AP.
"Encryption key off": You said you were using WEP?
 After dhclient post output of ifconfig.
If the network is still unreachable, try "ifconfig wlan0 inet 192.168.0.40"
You'll have no DNS but "ping 192.168.178.0.1" should work.
You can insert
Code: [Select]
auto wlan0
iface wlan0 inet dhcp
into /etc/network/interfaces.
Title: Re: nspire Linux Questions
Post by: Eeems on November 28, 2012, 10:57:27 am
look, about the error from set i do this " vi /etc/network/interfaces"

and this is the output :

Configure Loopback
auto lo
iface lo inet loopback
~
~
~
~
~
~
~
~
~
~
~
~
- /etc/network/interfaces 1/4 25%

do i have to change something in there? o.O
http://www.washington.edu/computing/unix/vi.html
Title: Re: nspire Linux Questions
Post by: noobnonin on November 28, 2012, 11:18:04 am
ifconfig output (after dhclient)
TX packets:6    errors:0 dropped: 0 overruns:0 carrier:0
    collisions:0  txquelen:0
RX bytes :450 (450.0 B)  Tx Bytes  450 (450.0 B)

Link encap: Ethernet  HWaddr 68:7F:74:6A:45:4D
inet addr: 192.168.0.40 Bcast   192.168.0.255
Mask 255.255.255.0
Up broadcast RUNNING MULTICAST   MTU:1500  Metric:1

Rx packets:34   errors:0   dropped:4   overruns:0     frame:0
Tx packets:3   errors:0   dropped:0   overruns:0     carrier:0
collisions:0 txquelen:0
RxX bytes : 4152  (4.0Kib)     TX Bytes (1086)  (1.0Kib)


err, i accidentally double posted many times....




sorry, auto: command not found
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 11:20:12 am
You have an ip, pinging should work.
But why "noobnonin banned"?
Title: Re: nspire Linux Questions
Post by: noobnonin on November 28, 2012, 11:27:36 am
If the network is still unreachable, try "ifconfig wlan0 inet 192.168.0.40"
You'll have no DNS but "ping 192.168.178.0.1" should work.

it works... its pinging  


Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 11:46:20 am
If you read my post, you should insert it into /etc/network/interfaces, not execute it..
Title: Re: nspire Linux Questions
Post by: noobnonin on November 28, 2012, 11:58:43 am
i cant modify it, when i press dw and erase and then type with i what i want when im closing with zz it doesnt saves....

does this influences with my last problem of connections?? this file? .....

btw i still have bit rate 1MB/s ... how can i change that?

Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 11:59:23 am
May be, but you can also use nano if you don't want to fiddle with vim.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 28, 2012, 12:02:22 pm
errr.... in noob language?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 12:02:46 pm
Use nano instead of vim.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 28, 2012, 12:08:02 pm
ok done :D
now? xd

i ping google.com
ping: bad adress ´google.com´


o.O now when i boot it automatically raises the wifi dongle xd
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 12:09:20 pm
Think.
Title: Re: nspire Linux Questions
Post by: noobnonin on November 28, 2012, 12:14:52 pm
 *.* :w00t: :banghead: ??? ??? ??? ??? ??? :w00t: :w00t: :w00t: :w00t: :w00t: :w00t: :w00t:
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 28, 2012, 01:18:04 pm
When it boots, you can set an ip, but without link you won't be able to do anything.
You have to connect to your network again.
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on November 28, 2012, 05:31:23 pm
Any idea who mass-downrated noobnonin above?  ???

Whoever did it might want to undo it himself (Other than the smiley-only spam above of course) so that it is not seen as vandalism, votespam or something. (EDIT Unless the downvotes were for the many double-posting)
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 29, 2012, 08:20:59 am
I don't know.
He emaild me yesterday, WLAN works for him now.
Title: Re: nspire Linux Questions
Post by: aeTIos on November 29, 2012, 08:44:57 am
Any idea who mass-downrated noobnonin above?  ???

Whoever did it might want to undo it himself (Other than the smiley-only spam above of course) so that it is not seen as vandalism, votespam or something. (EDIT Unless the downvotes were for the many double-posting)
I did, removed most of them (other than the smiley-only post), sorry. I was a bit pissed off yesterday when seeing that he just created a new account after getting banned (at least that's the impression I got)
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on November 29, 2012, 09:44:16 am
Yeah I think the nickname even included "banned" in it. >.<

Glad to hear WLAN works for him now, though. Next: Starcraft on Wine! J/k (the game's online play doesn't even get close to work properly even on a real Linux computer)
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 29, 2012, 10:49:07 am
It impossible for WinE (Remember: Wine Is not an Emulator) to run under non x86 platforms.
WinCE apps will run, but that's not even alpha.
Title: Re: nspire Linux Questions
Post by: Eeems on November 29, 2012, 10:53:29 am
Quote
Any idea who mass-downrated noobnonin above?  ???                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                             
   Whoever did it might want to undo it himself (Other than the smiley-only spam above of course) so that it is not seen as vandalism, votespam or something. (EDIT Unless the downvotes were for the many double-posting)
Due to the fact that it was a duplicate account meant to ban dodge I think the downvotes are acceptable. The only reason it's not showing as the duplicate account is because I merged the two fo them.
Title: Re: nspire Linux Questions
Post by: willrandship on November 29, 2012, 05:09:05 pm
WinCE has so few useful applications that it's not really worth the trouble of using a Wine-like software. In the ARM sector, Linux is so far ahead of windows it's laughable. (Especially if you include android as linux)

Also, I'm fairly sure that the acronym is WINE, not WinE. The latter implies that it means "Windows Emulator" which is, as I'm sure you know since you stated the correct one, completely wrong. :P
Title: Re: nspire Linux Questions
Post by: TheNlightenedOne on December 01, 2012, 02:08:17 pm
Does anybody know how to set this up on the Touchpad now that it's working on classics?
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 01, 2012, 02:18:42 pm
You have to do the same as with cx's.
Just there is no kernel image online for non-cx's yet, so you have to build one yourself.
Title: Re: nspire Linux Questions
Post by: TheNlightenedOne on December 01, 2012, 02:22:07 pm
But linuxloader2 is working?
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 01, 2012, 02:28:19 pm
The latest version from github should work.
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on December 01, 2012, 02:33:16 pm
Quote
Any idea who mass-downrated noobnonin above?  ???                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                             
   Whoever did it might want to undo it himself (Other than the smiley-only spam above of course) so that it is not seen as vandalism, votespam or something. (EDIT Unless the downvotes were for the many double-posting)
Due to the fact that it was a duplicate account meant to ban dodge I think the downvotes are acceptable. The only reason it's not showing as the duplicate account is because I merged the two fo them.
Yeah that's what I think also. I just found it weird at first to just see single posts from the original account being downrated XD, but that's understandable
Title: Re: nspire Linux Questions
Post by: mdr1 on December 09, 2012, 10:06:58 am
Which rootfs.ext2? If you downloaded the files from above, you only have zImage.tns and rootfs.tar.bz2.
You can't use a tar.bz2 as initrd.
Ok.

These questions should probably be posted in the Nspire Linux questions topic ;)
Ok. ;)

Your link is imprecise. What you need is a fairly uncommon male mini-A to female A cable.
Where can I find one ? I didn't find on google.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 09, 2012, 10:09:44 am
Quote
Where can I find one ? I didn't find on google.
I think you can use mini-b to female-a too.
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on December 09, 2012, 10:12:51 am
AFAIK, nope, because on well-behaved controllers, mini-B does not trigger the appropriate behaviour (host mode). Only mini-A does.
Title: Re: nspire Linux Questions
Post by: mdr1 on December 09, 2012, 10:15:02 am
I think you can use mini-b to female-a too.
It's weird because the "a" is for the host and the usb stick is not the host but the hosted.
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on December 09, 2012, 10:18:54 am
You need an _externally_ powered hub ;)
Title: Re: nspire Linux Questions
Post by: mdr1 on December 09, 2012, 10:23:54 am
You need an _externally_ powered hub ;)
I don't understand. ???
All I want is where can I find this adaptator.
Title: Re: nspire Linux Questions
Post by: noobnonin on December 09, 2012, 11:19:11 am
mdr1, you can use the cable that comes with the texas, that has two mini ports
btw you can get an external powered hub in electronics or pc parts stores


Fabian, tangrs, do you think that graphics interface web browser could be supported @.,@

Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 09, 2012, 11:20:29 am
Midori works, but very slow (3 min to render google, 5 secs to render keypresses)
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on December 09, 2012, 11:43:47 am
mdr1: the thing is, you want a male mini-A <-> female A cable and an externally powered hub.
The Nspire's USB port doesn't provide enough current for many USB devices, and anyway, if it did, it would severely reduce battery life for the most demanding devices, as the USB specs allow devices to suck up to 500 mA (under 5 V) per port.
Title: Re: nspire Linux Questions
Post by: ElementCoder on December 09, 2012, 12:54:52 pm
Would something like tinycore linux be do-able/useful? http://distro.ibiblio.org/tinycorelinux/welcome.html
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on December 09, 2012, 01:04:28 pm
Probably both doable and useful.
The usual desktop/laptop-oriented flavors of the main distros, aimed at computers with at least 512 MB - 1 GB of RAM, are flat out inappropriate for the Nspire; minimal distros aimed at low-powered hardware with low storage space (Debian minimal bootstraps, Emdebian Grip, TinyCore and several others) would clearly be a better fit for the lackluster Nspires (well, they're the most powerful platforms of their class, but horribly suck in absolute comparisons).
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 09, 2012, 01:27:50 pm
I don't think any linux distro with desktop environment is usable.
Not even the most-embedded webkit browser is running bearable.
You can't to anything useful other than "links -g".
Even for file browsers the screen is too small, we should focus on non-X distros.
It could get faster if we can get USB 2.0 to work (swap).
Title: Re: nspire Linux Questions
Post by: noobnonin on December 11, 2012, 01:08:55 am
errrr,,, ive seen tinyweb, and i think its faster.... xd

Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 11, 2012, 01:20:47 am
Link? I can only find a webserver for windows called tinyweb.
Title: Re: nspire Linux Questions
Post by: willrandship on December 11, 2012, 01:58:29 am
Well, clearly these pieces of software were meant for more powerful devices. Remember when desktop computers were this bad? I do. Webkit didn't exist yet, and if CSS did, not many people were using it. Walls of text, with the occasional image. If you were lucky, it had anchor tags (internal page links) so you didn't have to scroll all day. Loading a page took about 30 seconds, unless there were images.
Title: Re: nspire Linux Questions
Post by: ElementCoder on December 11, 2012, 10:06:48 am
Oh i remember those times. At least you didn't have to worry about the looks of your website :P
Title: Re: nspire Linux Questions
Post by: Hayleia on December 11, 2012, 12:25:06 pm
Link? I can only find a webserver for windows called tinyweb.
http://ourl.ca/17033/316780
Title: Re: nspire Linux Questions
Post by: willrandship on December 11, 2012, 02:30:51 pm
Yeah, no one stayed on them long enough for the GIFs to load.
Title: Re: nspire Linux Questions
Post by: noobnonin on December 13, 2012, 06:31:45 pm
are there any other web browsers? that are fast and have images??

Regards,
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 05:39:42 am
hey,

I can't get my keyboard working with Linucx, is an apple keyboard supported?
I also can't get my usb drive to work, I tried with usb hub and without. (i'm using an konig usb hub)

thanks,
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 07:35:18 am
Quote
I can't get my keyboard working with Linucx, is an apple keyboard supported?
Which kernel do you use?
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 08:58:36 am
Quote
I can't get my keyboard working with Linucx, is an apple keyboard supported?
Which kernel do you use?
I use your kernel
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 09:05:45 am
Ok, currently there's no support for Apple USB Keyboards.
I'll make a new config and compile the kernel.
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 09:15:56 am
and about my usb drive, should it just work of do i have to type some commands?

and i was wondering can I use gcc on this version of linux?

thanks for the answer
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 09:27:35 am
http://tiplanet.org/nspire-linux-builds/zImage_expanded_20121216_1521.tns (http://tiplanet.org/nspire-linux-builds/zImage_expanded_20121216_1521.tns)

Quote
and about my usb drive, should it just work of do i have to type some commands?
It should work fine if it doesn't require USB 2.0.
Try to boot with initrd and plug your drive in after it booted.

Quote
and i was wondering can I use gcc on this version of linux?
Yes, but it's not integrated in the current buildroot.
You have to build your own or cross-compile.
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 10:01:33 am
hm, I can't boot that kernel :S

they stop at this point.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 11:16:34 am
Strange, did you type something or did the y's appear themselves?
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 11:40:16 am

Strange, did you type something or did the y's appear themselves?


they always appear, sins the first kernel I used.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 11:43:04 am
Try http://dl.dropbox.com/u/105478372/zImage.tns (http://dl.dropbox.com/u/105478372/zImage.tns).
Tested and boots fine on CX CAS.
It's my current kernel I'm working on, with apple_hid support.
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 11:47:40 am
oh, I found out why.

kernel linux/zImage.tns
initrd linux/initrd.tns
cmdline debug root=/dev/ram console=tty0 console=ttyAMA0,115200n8
boot

I got this scrip from someone else :s
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 11:51:49 am
Both cmdlines work for me.
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 11:58:28 am
is this kernel compatible with a non CAS?
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 12:05:47 pm
CAS and non-CAS should be almost the same hardware (discussed earlier somewhere), so it should boot on both.
If it doesn't, we'll have to find the cause(s) :-(
Title: Re: Re: nspire Linux Questions
Post by: TheNlightenedOne on December 16, 2012, 12:07:00 pm
Could someone compile a Touchpad zImage and initrd for me? I can't figure out how
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 12:11:21 pm
The kernel should boot on all TI nspires.
http://tiplanet.org/nspire-linux-builds/zImage_expanded_20121216_1521.tns (http://tiplanet.org/nspire-linux-builds/zImage_expanded_20121216_1521.tns)
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 12:25:16 pm
i'm not sure but only the kernel from: http://ritter-vogt.dyndns.biz/lowlevel/zImage.tns works for me.

and the y just appear don't know why I thought it was "cmdline debug root=/dev/ram console=tty0 console=ttyAMA0,115200n8" this line
but it also appears "cmdline root=/dev/ram" when i use this line. (not sure if this happens with every kernel)
Title: Re: Re: nspire Linux Questions
Post by: TheNlightenedOne on December 16, 2012, 12:31:40 pm
Oh, okay. Thanks!
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 01:02:09 pm
i'm a bit confused are there different initrd.tns files??
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 01:03:21 pm
Can be, but everyone works.
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 01:12:14 pm
is there any information i can provide you to understand whats going wrong with my calc?
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 01:16:19 pm
First, check if your kernel image is not corrupt:
'md5sum zImage.tns'
Second, are you using the most recent linuxloader2.tns?
If not, you need the most recent version to boot multiplatform kernels.
Title: Re: nspire Linux Questions
Post by: floris497 on December 16, 2012, 01:27:41 pm
oh i'm so sorry for taking your time, it seems my linuxloader2.tns was not up to date.

maybe versions in linuxloader2 is useful? like 2.1.6 or something.

thanks for your help, this did solve my problem :)
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 16, 2012, 01:34:19 pm
Great! I was having that problem once, too..
Quote
maybe versions in linuxloader2 is useful? like 2.1.6 or something.
Would be better for versions which are incompatible with older and newer kernels.
Clone git and write a patch for it  ;)
Title: Re: nspire Linux Questions
Post by: noobnonin on December 19, 2012, 11:33:08 am
good day all :D
how is it going with graphics browser???

PD: i love vogtinator :3
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 08:23:29 am
Hi,

I've been trying launch linux on my Clickpad CAS.
I got the latest version of nll, and the latest zImage build here: https://tiplanet.org/nspire-linux-builds/ (Success at 20121219_1910 for version v3.6-12887-g8db42e4, config expanded)

I'm using this script:
Code: [Select]
kernel linux/zImage.tns
cmdline root=/dev/ram
boot

However, linux always freeze here:
Code: [Select]
[<c0441f00>] (dump_stack+0x0/0x1c) from [<c044201c>] (panic+0x84/0x1dc)
[<c0441f98>] (panic+0x0/0x1dc) from [<c0546d6c>] (mount_block_root+0x278/0x2cc)
e3:c1829eb4 r2:c0516b17 r1:c1829ee8 r0:c05052fd r7:00008001
[<c0546af4>] (mount_block_root+0x0/0x2cc) from [<c0546f10>] (mount_root+0x58/0x70)
[<c0546eb8>] (mount_root+0x0/0x70) from [<c0547090>] (prepare_namespace+0x168/0x1c8)
[<c0546f28>] (prepare_namespace+0x0/0x1bc) from [<c043fad4>] (kernel_init+0x174/0x2a8)
[<c043f960>] (kernel_init+0x0/0x2a8) from [<c000dff0>] (ret_from_fork+0x14/0x24)
//Might be a few errors in the addresses, it's hard to copy :P

(I tried several zImages on TI-Planet, and it fails at the same point).

Any idea? :)
Thanks!
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 08:48:06 am
You need to specify an initrd to load, e.g.:
Code: [Select]
kernel linux/zImage.tns
initrd linux/initrd.tns
cmdline root=/dev/ram
boot
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 08:55:56 am
I thought this was optional.
Can you give me a link to a minimal initrd please?
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 09:05:07 am
Yeah, here's one build (not tested):
http://tiplanet.org/nspire-linux-builds/initrd.tns (http://tiplanet.org/nspire-linux-builds/initrd.tns)
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 09:16:32 am
Thanks for the link. However, linux still freezes at the same point.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 09:20:18 am
Ok..
Then try the kernel with defconfig and use the initrd provided by tangrs in the other thread.
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 09:27:31 am
I tried to search for "initrd" using the search tool, but could not found any (except one from you which is way too big to fit on a Clickpad^^).
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 09:29:32 am
http://ourl.ca/17131;msg=266194 (http://ourl.ca/17131;msg=266194)
He referred to it as ramdisk..
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 09:34:06 am
Thanks, that is way better. It now asks me for the username but... I have got this error every one second or so:
"can't open /dev/ttyAMA0: no such device of address"


EDIT: Same behaviour with the expanded zImage.
Title: Re: nspire Linux Questions
Post by: gtugablue on December 20, 2012, 09:37:41 am
Thanks, that is way better. It now asks me for the username but... I have got some error every one second or so:
"can't open /dev/ttyAMA0: no such device of address"


Same
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 09:45:18 am
Ok, you just have to edit your boot script.
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 09:47:39 am
Now working, thanks!
Code: [Select]
cmdline root=/dev/ram console=ttyAMA0
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 09:49:15 am
I simply use
Code: [Select]
cmdline root=/dev/ram
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 09:53:22 am
Well, this is what I was using...

I have just rebooted the Nspire, and I have the error again (did not changed anything).
One again, and no problem this time...

PS: Also, if I make a mistake in the login the first time, the keyboard then acts strangely: I can't only type things such as * or /.

Edit: What the? I was logged, tried a few commands, and it asked me for the login again! (could not type it as described above).
Edit2: Reboot, same problem, typed a dummy login name, and now I just have semi random strings (like P __[ord instead of Password^^).
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 09:59:17 am
I think (and hope) it's not a kernel issue.
For me it works without problems (CX CAS).
Could you try http://tiplanet.org/nspire-linux-builds/initrd.tns (http://tiplanet.org/nspire-linux-builds/initrd.tns) with defconfig kernel?
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 10:03:57 am
OK, so, with just cmdline root=/dev/ram, it freezes as described in the first post.
With cmdline root=/dev/ram console=ttyAMA0, it also freezes, but nothing gets printed on the screen (except Tux).
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 10:04:39 am
With console=tty0 maybe?
ttyAMA0 is the serial port..
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 10:09:33 am
It gives me the same result as "cmdline root=/dev/ram".
Title: Re: nspire Linux Questions
Post by: gtugablue on December 20, 2012, 10:38:57 am
In case it helps, the last message before freezing is:
[<c0254df0>] (kernel_init+0x0/0x2a8) from <c00094f0>] (ret_from_fork+0x14/0x24)
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 10:39:39 am
That's only the usual message if linux can't execute /sbin/init.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 11:26:10 am
My friend doesn't want to downgrade his OS to 3.1 :-(
Title: Re: nspire Linux Questions
Post by: gtugablue on December 20, 2012, 11:28:43 am
I forgot to mention, mine is a non-cas clickpad and no, it's not working.
@Vogtinator if you need a tester feel free to ask.
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 11:44:37 am
//Oops; deleted the message above.
Just a question: did anyone ever succeeded in booting Linux on Clickpad?

Of course, it's been made on CX. I also saw it's been made on Touchpad (http://ourl.ca/17131/326297). But did anyone made it on a Clickpad?
//End of deleted message.

My friend doesn't want to downgrade his OS to 3.1 :-(

Tell him how better OS 3.1 is for Clickpads, even without Ndless.

You get much more free space, fewer bugs, faster OS*, ect...
*3.1 isn't faster than others. 3.2 just happen to be much slower in some cases.

---

I've been trying a few configs again.

So, it seems to be "quite" ok with any recent zImage found on TI-Planet and the initrd from here:
http://ourl.ca/17131;msg=266194 (http://ourl.ca/17131;msg=266194)
He referred to it as ramdisk..

The only problem left being getting "can't open /dev/ttyAMA0: no such device of address" every second or so.
I could still manage to type a few commands, and they are working OK.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 11:46:21 am
Could you try and find out where it tries to open /dev/ttyAMA0?
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 11:48:44 am
I'd do it, but have no idea how to do this.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 11:51:24 am
Sys-Request should be enabled in expanded config.
Type SysRq + 0 to get rid of warnings.
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 11:58:25 am
"SysRq: not found" :( (with expanded config).
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 11:59:14 am
SysRq is a key on your keyboard :-P (AltGr + Print normally)
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 12:00:46 pm
Oh... well.
Problem is my Nspire isn't connected to my PC. Am I supposed to type this on the Nspire?
(if yes, what stands for AltGr?)
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 12:14:22 pm
Quote
Problem is my Nspire isn't connected to my PC. Am I supposed to type this on the Nspire?
Yes, with an USB keyboard, if it works. I don't know whether USB even works on Clickpads..
AltGr is the key on the right side of space.
Title: Re: nspire Linux Questions
Post by: excale on December 20, 2012, 12:17:21 pm
I know where to find AltGr on a "regular" keyboard :) (I thought it would maybe be mapped on some strange key on the nspire keyboard like pi or ...).
Unfortunately, I don't have any USB keyboard with me.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2012, 12:18:33 pm
I don't think it's mapped to any key at all :-/
Title: Re: nspire Linux Questions
Post by: InspiredByCas on December 22, 2012, 01:06:11 pm
Is it possible that some sticks have a buggy firmware and create lots of "XactErr" errors?
And sometimes it says the port is reset by eheci-platform....

I first thought, this would be a connection problem of my selfmade USB power-thing, but with another stick it works well.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 22, 2012, 01:16:04 pm
Quote
Is it possible that some sticks have a buggy firmware and create lots of "XactErr" errors?
Try it on your PC

Quote
And sometimes it says the port is reset by eheci-platform....
I have an USB Mouse which resets it five times a seconds (but works..). Other mice work fine.
Title: Re: nspire Linux Questions
Post by: InspiredByCas on December 22, 2012, 01:35:35 pm
No errors appear in dmesg log on my pc...

But a line 'quiet_error: 36 callbacks suppressed'
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 22, 2012, 01:50:08 pm
Quote
No errors appear in dmesg log on my pc...
Maybe some issues with USB 1.1.
Title: Re: nspire Linux Questions
Post by: noobnonin on December 22, 2012, 05:36:38 pm
vogtinator, is midori fast? is it good or is it slow?, can we use it?

Regards,
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 23, 2012, 05:51:17 am
Quote
Vogtinator, is midori fast? is it good or is it slow?, can we use it?
In a previous post I wrote it's slower than hell.
Title: Re: nspire Linux Questions
Post by: InspiredByCas on December 23, 2012, 05:04:54 pm
how can I start blackbox? It doesn't come with a replace option and can't start without x.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 23, 2012, 05:06:34 pm
In xterm:
Code: [Select]
killall twm
blackbox&
Title: Re: nspire Linux Questions
Post by: tangrs on January 05, 2013, 07:08:13 pm
//Oops; deleted the message above.
Just a question: did anyone ever succeeded in booting Linux on Clickpad?

Of course, it's been made on CX. I also saw it's been made on Touchpad (http://ourl.ca/17131/326297). But did anyone made it on a Clickpad?
//End of deleted message.

My friend doesn't want to downgrade his OS to 3.1 :-(

Tell him how better OS 3.1 is for Clickpads, even without Ndless.

You get much more free space, fewer bugs, faster OS*, ect...
*3.1 isn't faster than others. 3.2 just happen to be much slower in some cases.

---

I've been trying a few configs again.

So, it seems to be "quite" ok with any recent zImage found on TI-Planet and the initrd from here:
http://ourl.ca/17131;msg=266194 (http://ourl.ca/17131;msg=266194)
He referred to it as ramdisk..

The only problem left being getting "can't open /dev/ttyAMA0: no such device of address" every second or so.
I could still manage to type a few commands, and they are working OK.

Classic calculators have different serial hardware. They're accessed through tty0. Try using console=tty0
Title: Re: nspire Linux Questions
Post by: excale on January 05, 2013, 07:15:09 pm
Thanks for your anwser.

Here is my script right now:
Code: [Select]
kernel linux/zImage.tns
initrd linux/initrd.tns
cmdline root=/dev/ram console=tty0
boot

I still get the error.
Title: Re: nspire Linux Questions
Post by: tangrs on January 06, 2013, 04:06:49 am
Thanks for your anwser.

Here is my script right now:
Code: [Select]
kernel linux/zImage.tns
initrd linux/initrd.tns
cmdline root=/dev/ram console=tty0
boot

I still get the error.

Hmmm. It's probably in the initrd then.

Mount the initrd and edit the etc/inittab file. Comment out the line that starts with ttyAMA0:: and unmount.

If you have no idea what that means, ask the person who gave you the initrd :P
Title: Re: nspire Linux Questions
Post by: excale on January 06, 2013, 04:09:11 am
Well, I'm going to ask you :P.

The only initrd I found which did not ended up in a kernel panic was this one: http://ourl.ca/17131;msg=266194 .
Title: Re: nspire Linux Questions
Post by: gtugablue on January 06, 2013, 09:50:09 am
@tangrs
I don't know if I did this right because I don't know what you mean by mounting.
I entered the following commands:
cd ..
ls
cd etc
ls
---------
The file inittab was there so I wrote: vi initab. However, the file was empty...
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 06, 2013, 09:51:36 am
On a linux pc, run the following:
Code: [Select]
mount -t ext2 -o loop initrd.tns /mnt
cd /mnt/etc
vi inittab
cd /
umount /mnt
Title: Re: nspire Linux Questions
Post by: epic7 on January 06, 2013, 10:32:20 am
I got linux installed... now what :P
Is there a place where I can find some cross-compiled programs?
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on January 06, 2013, 10:36:57 am
There's no package manager or repository: you'll have to compile them by yourself, using the toolchain produced by buildroot (which you need to compile as well).
Title: Re: nspire Linux Questions
Post by: epic7 on January 06, 2013, 10:56:42 am
How do I compile that?
Title: Re: nspire Linux Questions
Post by: floris497 on January 06, 2013, 11:46:52 am
can someone tell me how to connect an usb drive to linux on my nspire cx?
Title: Re: nspire Linux Questions
Post by: excale on January 06, 2013, 01:10:02 pm
On a linux pc, run the following:
Code: [Select]
mount -t ext2 -o loop initrd.tns /mnt
cd /mnt/etc
vi inittab
cd /
umount /mnt

I've done it and commented the line.

The error does not show up anymore :).

But now, I have new problems, like linux asking me to login again and again after a few seconds/minutes, and I can only type a few characters like + or enter.
Also, why is home mapped as ctrl and not the "ctrl" key?
Title: Re: nspire Linux Questions
Post by: InspiredByCas on January 06, 2013, 01:20:19 pm
But now, I have new problems, like linux asking me to login again and again after a few seconds/minutes, and I can only type a few characters like + or enter.
Also, why is home mapped as ctrl and not the "ctrl" key?

Wrong keyboard mapping...? I think you don't have a CAS CX...

can someone tell me how to connect an usb drive to linux on my nspire cx?

You can buy a OTG USB cable with a mini USB 5-pin A connector on one side and ot the other side there should be female USB plug.

Or, if you are impatient and if you can solder: (my selfmade solution) You desolder a double-USB-plug from an old mainboard and connect all 8 pins in a way that you get 4 parallel connections. That was the hardest part. Then plug in the end of a mini USB A connector (you can use the cable which came came with your CAS for exchanging data between two calcs; plug in the thicker end which says 'A' and leave the other end unconnected) and start linucx. While linucx running, deconnect the mini USB A cable and connect the standart cable (I mean the cable which you can connect to your CAS and to your PC) plug it in the CAS and the 'adapter' which you soldered before. The other port of your 'adapter' should get connected to a powered USB hub and then you can connect all your devices to your hub.
If you are booting from a USB stick you maybe should increase the rootdelay.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 06, 2013, 01:27:45 pm
Try to use
Code: [Select]
cmdline root=/dev/ram init=/bin/bashnow you should be able to run commands without being thrown out.
Title: Re: nspire Linux Questions
Post by: excale on January 06, 2013, 01:48:29 pm
But now, I have new problems, like linux asking me to login again and again after a few seconds/minutes, and I can only type a few characters like + or enter.
Also, why is home mapped as ctrl and not the "ctrl" key?

Wrong keyboard mapping...? I think you don't have a CAS CX...
I don't. I have a CAS Clickpad.

Try to use
Code: [Select]
cmdline root=/dev/ram init=/bin/bashnow you should be able to run commands without being thrown out.

About the ctrl key, during different boots, I got home being ctrl, ctrl being ctrl (after pressing "del") and sometimes none of them being ctrl.

Also, the "del" key seems to be the main problem. If I press it, the keyboard map goes wild and I still get kicked out quickly. Otherwise, It's working quite fine.

PS: tried again making sure I do not press "del". Home seems to be the "begin", "page up" or whichever key which goes back to the beginning, ctrl apparently does nothing, and "maj" works only one way. I long as I press it, everything is in CAPS and pressing it again makes nothing.
PS²: there are a lot other odd mapped keys as well
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 06, 2013, 01:55:30 pm
Which kernel? Try some more versions
http://tiplanet.org/nspire-linux-builds/kernel.html (http://tiplanet.org/nspire-linux-builds/kernel.html)
Title: Re: nspire Linux Questions
Post by: floris497 on January 06, 2013, 02:10:26 pm

You can buy a OTG USB cable with a mini USB 5-pin A connector on one side and ot the other side there should be female USB plug.

Or, if you are impatient and if you can solder: (my selfmade solution) You desolder a double-USB-plug from an old mainboard and connect all 8 pins in a way that you get 4 parallel connections. That was the hardest part. Then plug in the end of a mini USB A connector (you can use the cable which came came with your CAS for exchanging data between two calcs; plug in the thicker end which says 'A' and leave the other end unconnected) and start linucx. While linucx running, deconnect the mini USB A cable and connect the standart cable (I mean the cable which you can connect to your CAS and to your PC) plug it in the CAS and the 'adapter' which you soldered before. The other port of your 'adapter' should get connected to a powered USB hub and then you can connect all your devices to your hub.
If you are booting from a USB stick you maybe should increase the rootdelay.


I solderd a cable but i don't get the usb to work it connects but i don't know how to boot it :s
Title: Re: nspire Linux Questions
Post by: excale on January 06, 2013, 02:12:22 pm
I also had strange behaviours although never the exact same one with the latest two kernels (I was using the ones from 23/12 before).

Also, this time, pressing home showed me a screen with some information, and I spotted "Failed to execute /bin/bash. Attempting defaults...."
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 06, 2013, 02:26:51 pm
Oh, try /bin/sh then
Title: Re: nspire Linux Questions
Post by: excale on January 06, 2013, 02:31:23 pm
Not really better^^
I get:
"/bin/sh : can't access tty: job control turned off"
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 06, 2013, 02:34:37 pm
That's just a warning, no prob at all.
Do you get a shell?
If not, try console=tty0
Title: Re: nspire Linux Questions
Post by: excale on January 06, 2013, 02:36:35 pm
I did get a shell (already had console=tty0 ), but with the crazy keyboard, meaning I could only type a few characters like * or +.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 06, 2013, 02:37:47 pm
USB Keyboard?
I'll try the current kernel on my cx cas, maybe I get the same error
Title: Re: nspire Linux Questions
Post by: excale on January 06, 2013, 02:42:34 pm
I've been thinking again...
It looks like "clear" is in fact the ctrl key, but like "maj", you can't disable it (thats why the keyboard acted strangly).
But in this case, * and + cannot be typed.

So, I rebooted and waited a little. This time, the keyboard was strange in the other way, only a few keys like * or + worked.
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on January 06, 2013, 10:55:35 pm
Would this run on an Nspire running Linux?

http://www.onlive.com/

O.O
Title: Re: nspire Linux Questions
Post by: willrandship on January 06, 2013, 11:16:32 pm
Considering there's not even an x86 linux port of it, I think that would be hard DJ :P
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on January 07, 2013, 01:16:06 am
Maybe on Cortex-A9 quad (ODROID-X2 / ODROID-U2) or Cortex-A15 dual (Chromebook and future dev boards) devices, assuming they do not use native code, or said native code was ported to ARM Linux as well; but each core of those devices is more than an order of magnitude more powerful than the poor little CPU of the Nspire is. Recent real-world ARM computers have lots of RAM, too: 2 GB, and soon more, with the PAE capability of the Cortex-A15 series.
Nspires have very weak capabilities for such a high price tag... yet, all other calculators are worse.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 07, 2013, 01:27:10 am
archlinuxarm.org/forum/viewtopic.php?f=27&t=1241 (http://archlinuxarm.org/forum/viewtopic.php?f=27&t=1241)
onlive needs a dongle which has a faster arm than the nspire O.o
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on January 07, 2013, 01:28:14 am
Well then we can forget about it I guess, lol, since the Nspire only has a single USB port. :P (so if we connect a dongle via USB or something, then we no longer have any port left for the wi-fi one)
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 07, 2013, 08:07:39 am
The dongle has an ethernet port itself, also a good hub would be no problem at all
Title: Re: nspire Linux Questions
Post by: merauder75 on January 17, 2013, 04:59:55 pm
Wow...this has come a long way since I first saw it in October :thumbsup:

I've downloaded the latest rootfs, kernel, and such from tiplanet, and grabbed the USB Bootscript from the main thread.

What kind of initrd do I need? The only one I have is the one I built a long time ago and added some applications to with buildroot, before there was USB support.

From what I understand, I have to but the zImage in the linux folder, untar the xconfig-latest.tar.bz2 to a USB stick, run the bootscript, and it should load linux with the GUI.

Is this correct?
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 18, 2013, 01:18:19 am
Yes :-)
You only need an initrd if you don't use an usb stick.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 18, 2013, 05:07:27 pm
Crap, got kernel panic while it was booting, after. It seems to have identified my USB device that I loaded it onto, but then crashed. ???

This might have something to do with the fact that I'm using a 4GB SD Card and a reader (all I had, and I'm too lazy to go buy a USB hub).

Is that the only reason for the panic, using the SD Card?

I suppose I'll try a longer root delay, see if that works, since SDs are slower.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 18, 2013, 05:16:35 pm
You should get a message like "New USB device registered" "/dev/sda registered".
Do you see different error messages when booting without usb?
Some card readers register a seperate drive for each type.
Try to put it into a linux pc and look what it's called there.

BTW: Do you use defconfig or extended? I don't know whether defconfig supports card readers.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 18, 2013, 06:14:37 pm
I used extended zImage, and the xconfig rootfs.

On my debian server, it identified the reader as /dev/sdb1, but thats probably because the SSD the os uses is called /dev/sda1. Worth a try, i suppose, to call it /dev/sdb in the script and see what happens.
The kernel panic occurs after "Attached SCSI removable disk'

The panic then states something about root block mounting errors (its hard to tell what its saying)
Probably the kernel not liking my card reader.

Edit: it loads initrd's just fine, just cant use USB. When i used an initrd with usb plugged in, it seemedrecognize it, no idea if it mounted right
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 05:39:06 am
/dev/sdb1?
Then you have to use root=/dev/sda1 in your script.
Per default it uses /dev/sda, not the first partition.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 09:20:07 am
Yay, changing it to /dev/sda1 worked! It boots!

However, why is the screen flashing white so much, also the x server doesn't work. (I tried "startx", and it gave me a no display error)
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 09:21:49 am
Which calculator?
It works on a cx cas for me with the kernel and root from tiplanet.org/nspire-linux-builds (http://tiplanet.org/nspire-linux-builds).

Edit: I started a new build. The latest kernel didn't integrate touchpad, watchdog and backlight support (IIRC).
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 09:25:56 am
I also use a CX CAS. There might be something wrong with the build from there.

So you're fixing it? Excellent! ;D
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 09:37:55 am
Quote
I also use a CX CAS. There might be something wrong with the build from there.
Can't be..
I'm using the build from 20130116_1937 I think.
Could you try the latest version and post the output of "dmesg | tail"?

Quote
So you're fixing it? Excellent!
Build is ready, but I don't think it fixes anything (besides the flashing white, maybe)
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 09:54:51 am
That is the exact same build I was using, that or the one from the 18th.

The latest build just causes my calculator to hard reboot after I run my script... ???
Do I need a new ndless or something?
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 09:56:59 am
Quote
The latest build just causes my calculator to hard reboot after a run my script...
O.o That shouldn't be..

Quote
Do I need a new ndless or something?
Yep, I'm using the latest version.
Do you have the latest linuxloader?
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 09:59:20 am
I believe I do, i just redownloaded it from tiplanet. Why one kernel would work and the other wouldn't with the same ndless version is beyond me. I guess I'll try updating it (though I swear I just did it not long ago for gpsp)

That would probably also explain the flicker and such.

Edit: Nope, its definitely up to date, the last time ndless was updated was 8/15/2012, and I've definitely updated it since then
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 10:10:16 am
Quote
the last time ndless was updated was 8/15/2012
Thought so, too, but nTxt didn't work for me.
I'm using ndless v3.1 beta r685.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 10:19:22 am
That's a bug in nTxt's version checker, im pretty sure, i get the same thing.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 10:19:57 am
Nope, it just crashed.
With the last ndless versions it works perfectly.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 10:21:17 am
Im using ndless r985 and it won't even launch for me.

Edit: I'll try reinstalling ndless again, see if that helps. Also the build I used for the kernel was 20130119_1525, and 20130118_1959 for the FS Image
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 10:27:28 am
Hmm..
I'll try the exact same configuration as you're using on my calc.

Edit: You're right, it crashes O.o
Now my NAND is corrupt.. f*ck.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 10:39:28 am
Mine freezes on reboot until I hard reset it. Is that what NAND corruption is? Or did I just completely brick your calc? :o
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 10:43:39 am
Nope, you didn't xD Sometimes I only need to reboot, but most times I have to run NAND tests in diag mode..

Quote
Is that what NAND corruption is?
I think it's caused by some accidentally accesses to NAND which makes it lose some data.
I needed to format my NAND completely once..
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 10:46:06 am
Ok, so this is basically an issue with the kernel itself, not with my setup. I wish I could help with porting/patching linux stuff, but I'm a newbie with C.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 10:59:51 am
Quote
Ok, so this is basically an issue with the kernel itself, not with my setup.
Yes, probably with the cpufreq driver. I hope tangrs implemented the AHB clock limit correctly..

Quote
I wish I could help with porting/patching linux stuff, but I'm a newbie with C.
If you don't want to/can't code stuff, you may try to understand the filesystem.
Just open your flash image from nspire_emu in a hex editor.
Maybe you can reverse engineer it, there's currently no open source driver for the filesystem TI uses available.

Edit: Compiled the kernel on my laptop (instead of download it), it works. (Haven't tested X)
Does it work for you, too?
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on January 19, 2013, 11:18:45 am
Black-box reverse-engineering of the filesystem is a pain.
The boot2 1.4.1571 for Clickpad/Touchpad has long been known (through strings) to contain lots of filesystem-related code, not only FS interaction code called by the NavNet code, but also testing code.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 11:21:47 am
Quote
Black-box reverse-engineering of the filesystem is a pain.
Haven't done it before, but I think it's too confusing to see weird accesses with apparently no purpose at all.
Maybe it's the best way to compile nspire_emu with nand read/write debugging.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 11:28:52 am
It works for me as well.

The font is very hard to read (its tiny), but it works better, the flicker is there, but MUCH better.

X Windows still won't work, im getting

Code: [Select]
(EE) Failed to load module "fbdev" (module does not exist,0)
(EE) Failed to load module "mouse" (module does not exist, 0)
(EE) Failed to load module "kbd" (module does not exist,0)

Fatal Server Error:
no screens found
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 11:31:36 am
Ok, so they made some more changes in the buildroot configuration.
I'll check that, but it needs ~2 hours to compile (Or I bypass make clean)
Use http://tiplanet.org/nspire-linux-builds/xconfig_20130112_1412.tar.bz2 (http://tiplanet.org/nspire-linux-builds/xconfig_20130112_1412.tar.bz2) instead.
that's my version.
Tip: Don't extract it over / or you'll break your system (own experience)

BTW: directfb should still work. "df_window" is a good example for touchpad and graphics.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 12:11:45 pm
Crap, now my calculator is stuck on a clock icon on the gray background on startup. How do I fix this?
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 12:13:04 pm
You just corrupted your nand/filesystem/bad block table.
Nope, you didn't xD Sometimes I only need to reboot, but most times I have to run NAND tests in diag mode..
To get into diagnostics you have to press Esc+Menu+- while pressing reset on the back.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 12:17:46 pm
How do I get to the NAND test itself?

Is there a way to scroll?

Edit: Figured it out, it passed the NAND test...weird
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 12:20:10 pm
Quote
Edit: Figured it out, it passed the NAND test...weird
Yes, it is weird. But sadly we can't fix it as we don't know the cause.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 12:21:52 pm
Whew, it boots again ;D

Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 12:23:00 pm
Does X work now and could you move the cursor with the mouse?
I could only test it on my device.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 12:34:27 pm
 I tested your image and it works perfectly, x windows starts up correctly with touchpad mouse support, thanks for all the help and quick responses!
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 12:37:27 pm
Quote
I tested your image and it works perfectly
Except it makes your calculator refuse to boot in 80% of all cases xD
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 02:25:11 pm
True, but now I have relatively functional linux :). Any chance that therell be a version with gcc on it? Or some more programs? It feels like a waste to have a 4GB SD Card and 100MB of programs.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 02:26:23 pm
No problems, you can build your own rootfs. I posted a tutorial on configuring somewhere in the other thread, too lazy to search now.

You can also use some other distribution, like opensuse or debian, as long as it runs on armv5.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 02:29:30 pm
Is debian compatible with the x windows patch? Or is your patch for buildroot based linux?
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 02:30:04 pm
Nope, the patch is for the kernel :D
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 02:34:00 pm
Ah, so i can just use your kernel with whatever distro/buildroot config I want, neat.
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on January 19, 2013, 02:45:04 pm
Yeah, but keep in mind that the Nspire series, despite being the most powerful group of calculators on the market, is a wimp in terms of raw CPU power and available RAM.
Compilation and linking "complex" C++ code (just include several Qt headers, in a simple C++ program with very few LOC) easily takes hundreds of megabytes of RAM and 2-3 seconds on '2011-'2012 x86_64 computers. The Nspire's CPU is nearly two orders of magnitude slower than the x86_64 computer, and it has two orders of magnitude less RAM...
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 02:47:08 pm
Simple example:
Code: [Select]
int main(int argc, char** argv)
{
    printf("Hello World");
    return 0;
}
gcc main.c -o hw
needed 2 minutes (not overclocked).
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 03:10:12 pm
For hello world? Wow...thats slow :o. If its that slow, then nevermind. I guess I'll just put lua/python or something lighter on there, and stick to my android phone for GCC.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 03:14:29 pm
Quote
I guess I'll just put lua/python or something lighter on there
Buildroot even has php and perl :3
Title: Re: nspire Linux Questions
Post by: merauder75 on January 19, 2013, 03:17:11 pm
Quote
I guess I'll just put lua/python or something lighter on there
Buildroot even has php and perl :3

I think ill add perl and lua, and try it, now, for the 2.5 hour compile process with my laptop...
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 19, 2013, 03:20:20 pm
Remeber: Change system/skeleton/etc/passwd and etc/securetty before the first build!

Edit: Made two rebuilds for tiplanet.org/nspire-linux-builds (http://tiplanet.org/nspire-linux-builds).
It works now, should be easier to read with a larger font. Also, the console output is faster.

Edit2: The bottleneck we have is neither the ram nor the cpu, it's rather the slow connection to our drive. USB 2 will make a huge difference.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 22, 2013, 05:28:01 pm
How do I edit those two files? securetty is just a list of names (ttyS0, etc.), and I don't understand what passwd contains (default passwords?).

If this builds correctly I'll post it in the main thread so that people can use it. It contains vim, lua, python, and ruby, in addition to X windows. (It's based off xconfig)
Title: Re: nspire Linux Questions
Post by: battlestar on January 23, 2013, 04:54:35 pm
When I enter nano on linux, the ctrl key state reverses, so whenever I press ctrl, it is off, and when I release ctrl it thnks that it is on. How do I fix this ???
Title: Re: nspire Linux Questions
Post by: tangrs on January 23, 2013, 07:01:39 pm
When I enter nano on linux, the ctrl key state reverses, so whenever I press ctrl, it is off, and when I release ctrl it thnks that it is on. How do I fix this ???

Is this a touchpad/clickpad model? This issue was fixed just yesterday. It should be in the next nightly build at http://tiplanet.org/nspire-linux-builds/
Title: Re: nspire Linux Questions
Post by: TheNlightenedOne on January 23, 2013, 07:38:44 pm
On my Touchpad, when I use the defconfig kernel, tiny buildroot ramdisk, and ramdisk script from tiplanet.org/nspire-linux-builds, I get a kernel panic. What am I doing wrong? Can anybody help?
Title: Re: nspire Linux Questions
Post by: tangrs on January 23, 2013, 07:47:50 pm
On my Touchpad, when I use the defconfig kernel, tiny buildroot ramdisk, and ramdisk script from tiplanet.org/nspire-linux-builds, I get a kernel panic. What am I doing wrong? Can anybody help?

What does the kernel panic message say?

Edit: Does the kernel seem to work correctly after the panic?
Title: Re: nspire Linux Questions
Post by: gtugablue on January 23, 2013, 07:48:42 pm
On my Touchpad, when I use the defconfig kernel, tiny buildroot ramdisk, and ramdisk script from tiplanet.org/nspire-linux-builds, I get a kernel panic. What am I doing wrong? Can anybody help?
Same here with a clickpad, but works with the expanded config kernel (except usb that seems not to be working fine with the most recent one/ones).
Title: Re: Re: nspire Linux Questions
Post by: TheNlightenedOne on January 23, 2013, 09:24:35 pm
I used the extended kernel and it works. Thanks tangrs and gtugablue!
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 24, 2013, 01:24:11 am
It may be that tangrs defconfig doesn't support bzip2ed images.

USB is not working with expandedconfig?
That's strange, I used defconfig as starting point, added some drivers
and removed the annoying logo.
Title: Re: nspire Linux Questions
Post by: gtugablue on January 24, 2013, 03:01:55 am
With the other kernel, initrd and loader, every time I connected my Nspire to my PC the calculator would show a message saying a USB connection was made and the computer would recognize it as a Gadget Serial and use the corresponding driver. I was able to establish a serial connection using putty, even tough the console was always black (idk if it was suposed to show something but at least I know it was connected).
This time the calculator shows nothing when connected to my PC and the computer is unable to recognise it, calling it Unknown Device. I'm also unable to use putty with this kernel.
BTW, linux logo is still there, I'm using the expanded cfg kernel provided in the nspire linux builds homepage.
Title: Re: nspire Linux Questions
Post by: tangrs on January 24, 2013, 03:37:23 am
With the other kernel, initrd and loader, every time I connected my Nspire to my PC the calculator would show a message saying a USB connection was made and the computer would recognize it as a Gadget Serial and use the corresponding driver. I was able to establish a serial connection using putty, even tough the console was always black (idk if it was suposed to show something but at least I know it was connected).
This time the calculator shows nothing when connected to my PC and the computer is unable to recognise it, calling it Unknown Device. I'm also unable to use putty with this kernel.
BTW, linux logo is still there, I'm using the expanded cfg kernel provided in the nspire linux builds homepage.

Which kernel did it work with and which did it not work? Did you connect any USB host devices to it beforehand?

To get a shell on the Gadget Serial device through putty, you need Nspire Linux to attach a shell to /dev/ttyGS0
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 24, 2013, 03:52:03 am
I removed the logo in expandedconfig, if you can see it, you're using the wrong version.

Quote
To get a shell on the Gadget Serial device through putty, you need Nspire Linux to attach a shell to /dev/ttyGS0
Yup, edit /etc/inittab and copy the line tty0::respawn... and replace respawn with askfirst and tty0 with ttyGS0.
Title: Re: nspire Linux Questions
Post by: tangrs on January 24, 2013, 04:04:44 am
I removed the logo in expandedconfig, if you can see it, you're using the wrong version.

I just got an idea from this. How about we add "-defconfig" and "-expandedconfig" to CONFIG_LOCALVERSION on the different builds so users can work out which config they're on by running uname -a?
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on January 24, 2013, 04:24:01 am
Quote
I just got an idea from this. How about we add "-defconfig" and "-expandedconfig" to CONFIG_LOCALVERSION on the different builds so users can work out which config they're on by running uname -a?
+1.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 24, 2013, 05:36:59 am
I forgot that while searching through menuconfig.

But do we really need a small kernel?
They're only 0.2 MB in difference and they're almost the same but with more drivers.
Also, there's an option to include b43-firmware in buildroot.
Should I include it in xconfig only or in smallconfig, too?
Title: Re: nspire Linux Questions
Post by: tangrs on January 24, 2013, 05:44:30 am
I forgot that while searching through menuconfig.

But do we really need a small kernel?
They're only 0.2 MB in difference and they're almost the same but with more drivers.
Also, there's an option to include b43-firmware in buildroot.
Should I include it in xconfig only or in smallconfig, too?

IMHO, the defconfig should be kept minimal - basically enough to get the system to boot. That way everyone is happy - people who want the smallest working kernel doesn't have headaches working out which options can be disabled from the defconfig and people wanting more features can opt-in the ones they want.

In other news, I have a little surprise to demonstrate a potential use for the USB gadget framework.

Attached is a special kernel that acts as a mass storage device to dump the boot1 ROM - because dumping boot1 using polydumper is so mainstream :P

No initrd required, it's all included in the kernel. Just boot with cx_use_otg if you're using a CX model.

http://tangrs.id.au/linux_snapshots/zImage.tns
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 24, 2013, 09:41:27 am
Quote
In other news, I have a little surprise to demonstrate a potential use for the USB gadget framework.
Why not everything together? CDC composite combindes storage, serial and ethernet ;)

Quote
IMHO, the defconfig should be kept minimal - basically enough to get the system to boot. That way everyone is happy - people who want the smallest working kernel doesn't have headaches working out which options can be disabled from the defconfig and people wanting more features can opt-in the ones they want.
Yes, that's the reason make *_defconfig exists. But we don't really need to provide builds, you can do more with expanded than with defconfig with only 0.2MB less free space on your device.
Title: Re: nspire Linux Questions
Post by: Hooloovoo on January 29, 2013, 01:17:29 pm
Vogtinator: the error you asked for
xauth:  file /root/.serverauth.2050 does not exist


X.Org X Server 1.9.4
Release Date: 2011-02-04
X Protocol version 11
...don't have computer only phone

(==) Log file: "/var/log/Xauthority.0.log
Primary device is not PCI
(==) using default built-in configuration (12 lines)
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "mouse" (module does not exist, 0)
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No drivers available.
Fatal server error: no screens found
...
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 29, 2013, 01:20:39 pm
When did you download it? I thought I resolved this issue..
Also, your read-only '/' would be interesting, too.
Title: Re: nspire Linux Questions
Post by: Hooloovoo on January 29, 2013, 01:25:02 pm
probably a mistype
I think it is the most recent one, but I could be wrong. I'll try again when I get home.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 29, 2013, 01:25:55 pm
Ok, I'll try to build a new image. Should be ready in about an hour.
Title: Re: nspire Linux Questions
Post by: merauder75 on January 29, 2013, 02:48:59 pm
I had that issue with all tiplanet builds, the only x server that worked for me is the one in vogtinators earlier build posted here.
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on January 29, 2013, 02:59:03 pm
The buildroot builds on the TI-Planet server are handled by Vogtinator :)
But there must be a difference between the build posted here and the builds on the TI-Planet server, if one works for you and the others do not.
Title: Re: nspire Linux Questions
Post by: Vogtinator on January 29, 2013, 03:03:08 pm
It should work now.
At "20130112_1221 for version 2012.11-460-gec394d6" they changed the config option names for X, I forgot to
enable mouse, keyboard and fbdev again  ::)
Title: Re: Re: nspire Linux Questions
Post by: TheNlightenedOne on March 06, 2013, 09:33:00 pm
I'm using a touchpad noncas, and I'm trying to get the USB builds to work. I'm using the kernel that I downloaded tonight and the rootfs that I downloaded tonight. I extracted the rootfs to a ext3 4GB flash drive, which I have as the only device on a USB hub. My bootscript is

kernel linux/zImage.tns
cmdline root=/dev/sda1 earlyprintk debug console=tty0 console=ttyAMA0,115200n8 rootdelay=10
boot

If anybody could help me with this I would greatly appreciate it.
Title: Re: nspire Linux Questions
Post by: TheNlightenedOne on March 17, 2013, 08:06:51 pm
Bump
Title: Re: nspire Linux Questions
Post by: Hooloovoo on March 17, 2013, 08:10:34 pm
on the first page of this topic, there is a tutorial for extracting the rootfs to the flash drive. I think it has to be done this way, so all of the files are in the beginning of the partition. Also, if you do it this way, you will have to change /dev/sda1 to /dev/sda because it will be in the root of the device instead of partition 1.
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 06, 2013, 12:26:31 pm
Link to an installing tutorial. I just need that.
Title: Re: nspire Linux Questions
Post by: kaimano on April 09, 2013, 03:24:59 am
Hi everybody, I've just bought a NSPIRE and before starting hacking it I'd like to ask a few questions about linux.

From what I've read I understand that Linux can be started from within TI OS. My first question is this...it's possibile to erase completely the built-in OS and replace it with Linux?

I've also read that somebody succeeded in booting Debian ARM from external USB...could somebody kindly explain how this can be accomplished? The same Debian could be installed in the internal memory without using a USB stick?

One last question. My intention of installing linux is connected to my intention of porting a python interpreter on the NSPIRE. For what I understand, the CPython implementation should be pure C...so what kind of problems have till now prevented this porting?

Thanks for your help,
regards from Italy

Tiziano
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 09, 2013, 04:07:15 am
Quote
From what I've read I understand that Linux can be started from within TI OS.
Yup :)

Quote
My first question is this...it's possibile to erase completely the built-in OS and replace it with Linux?
With the recently released nLaunch and nLaunch CX, one can indeed launch Linux directly from the boot2, without having to carry TI's heavyweight OS. The latest versions are 10+MB, which is huge on the older Clickpad & Touchpad models, which have only 32 MB of NAND flash in total, and some of those are used by the boot2 + diags + filesystem data.

Quote
The same Debian could be installed in the internal memory without using a USB stick?
Nope, Nspire calculators use a proprietary filesystem for which Linux has no open source drivers - and anyway, the internal memory is too small. Even the best-equipped Nspire models of the CX series have only 128 MB of NAND Flash.

Quote
One last question. My intention of installing linux is connected to my intention of porting a python interpreter on the NSPIRE. For what I understand, the CPython implementation should be pure C...so what kind of problems have till now prevented this porting?
* the sheer weight of CPython + libs: multiple megabytes are a severe toll on a platform with less than 32 MB of usable Flash memory;
* the predictable slowness of Python (all the more it's not the most efficient interpreted, dynamic language...) on an ARM9 CPU which cannot be overclocked above ~222 MHz on some machines (some others leave a bit more headroom);
* the likely incompleteness of TI's OS wrt. POSIX APIs (TI's OS being based on proprietary Nucleus RTOS), and the incompleteness of the Ndless syscalls + libraries (even when complemented by e.g. newlib).
Title: Re: nspire Linux Questions
Post by: aeTIos on April 09, 2013, 06:25:47 am
Link to an installing tutorial. I just need that.
Just follow the readme instructions and you should be fine I think.
Title: Re: nspire Linux Questions
Post by: kaimano on April 10, 2013, 10:08:01 am
Lionel, thanks for your prompt answers. You say

Quote
Nspire calculators use a proprietary filesystem for which Linux has no open source drivers - and anyway, the internal memory is too small.

So I understand that Debian was booted from a USB drive. How can this be done? I mean...I suppose there is no "boot from usb" as there is on the PC BIOS...how can you boot from an external device? Do you need first a working linux in the NSPIRE and then mount the external drive and chroot there?

Thanks again for the help

Tiziano
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 10, 2013, 10:37:13 am
Quote
how can you boot from an external device? Do you need first a working linux in the NSPIRE and then mount the external drive and chroot there?
Indeed, you need a working Linux kernel (launched by linuxloader2 under Ndless or nLaunch / nLaunch CX), a small initrd, and a command-line parameter to the kernel for indicating that it should find the rootfs on the external USB Mass Storage Device.
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 10:38:49 am
If your usb drive is working with linux already, you only have to remove "root=/dev/ram" in your bootscript and replace it with "root=/dev/sda" or "root=/dev/sda1", depends on whether you are using partitions.
You should remove the "initrd" line, too. It doesn't do anything but increasing the boot time.
Title: Re: nspire Linux Questions
Post by: cybertronicify on April 10, 2013, 11:11:40 am
Hi, guys

im new to the forums and im rly interested in putting linux on my calc ti nspire cx... and im also a noob at it but i learn real fast. so far i have os 3.1 with ndless installed and the gameboy advance emulator too with a couple of games. i rly want to use wifi or just use a usb keyboard to type out stuff with qwerty.

Thanks to anyone who can helpp!!!!!!!!!!
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 11:18:08 am
You won't be able to use wifi without a proper self-powered usb hub.
Keyboard would work, but only when linux is running.
I think you want to use it in "calculator mode" (when TI's OS is running), which won't work (for now)
Title: Re: nspire Linux Questions
Post by: cybertronicify on April 10, 2013, 12:05:18 pm
Hi,

i actually don't need the nspire os LOL i just want linux on it i do have a powered hub the sabrent 4 port hub. i wanna put linux on it so i can go online or use usb mouse and keyboard or any other usb device. i just have no idea how to install it or put it in the calc. one of the users gave me this website http://tiplanet.org/nspire-linux-builds/ but i have no idea how to use it :( LOL

Thanks
Jason
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 12:10:53 pm
Quote
one of the users gave me this website http://tiplanet.org/nspire-linux-builds/ but i have no idea how to use it
You have to use your mouse and move it so the cursor is over a blue text "link" on which you can click (press left mouse button) xD

You just have to create a directory "linux" on your calc and copy
-zImage.tns
-linuxloader2.tns
-initrd.tns
-start_initrd.ll2.tns into it.
You also need to copy ndless.cfg.tns into "ndless". You can find all of these on nspire-linux-builds.
After that, it should already work by launching start_initrd.ll2.
Title: Re: nspire Linux Questions
Post by: cybertronicify on April 10, 2013, 12:33:12 pm
Hi,

Thanks for the quick relay :D where do i get the tns file LOLOLOOLO do i just rename the zip into tns?? and which one do i download  the small large full small tiny?

Jason
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 12:36:08 pm
Which .zip file? We don't have any zips there!
The tiny image should be enough for you. For the other ones you'll need to boot from an usb drive (which is a bit complicated)
Title: Re: nspire Linux Questions
Post by: cybertronicify on April 10, 2013, 12:40:50 pm
ahh i c but it says kernel not loaded on calc LOLOOL
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 12:42:26 pm
LOLOLOLLLLOOO Then you did something wrong LOLLLLLOOOOOOOL
Title: Re: nspire Linux Questions
Post by: cybertronicify on April 10, 2013, 12:43:34 pm
ohh i forgot to rename the kernel it had the expanded latest after it LOL now i fors then i wait and it says hi, wtf are you doing with me then i put in root and now i asks me for # is that the pass?
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 10, 2013, 12:44:53 pm
Seriously, cybertronicify... you should start using proper language ;)
This is not Facebook or similar crap, this is a programming message board attended by knowledgeable people on their free time.
Title: Re: nspire Linux Questions
Post by: cybertronicify on April 10, 2013, 12:46:25 pm
Hi,

Sorry LOLOLO, gotta get use to forums XD

its funny now i can't exit LOL i type "exit" then it ask for password...

Jason
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 12:51:28 pm
LOLOLO then Linux is running OLOLOL ASDF

Seriously: Could you please write without using "LOL" "LOOL"? I hope you aren't used to this.

The password should be empty, the username is root (you typed "exit" instead)
Title: Re: nspire Linux Questions
Post by: TIfanx1999 on April 10, 2013, 01:08:50 pm
Hello cybertronicify, welcome to Omnimaga. I've merged two of your consecutive posts. If you have something quick to add please use the "modify" button in the top right hand corner of you postbox. Generally, you shouldn't make back to back posts unless 24 hours have passed between the two. Also, you might want to head over and check out our <a href=http://www.omnimaga.org/index.php?action=ezportal;sa=page;p=2>rules page.</a> If you like you can go <a href=http://www.omnimaga.org/index.php?board=10.0> introduce yourself</a> as well. :)
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on April 10, 2013, 01:27:45 pm
We could maybe do like Cemetech and censor anything that starts with lol completely to just 0x5. :P

That said welcome here, just make sure to follow forum rules (spam/double posting/etc) as AoC says. :)
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 10, 2013, 01:28:23 pm
I must say, simply putting Linux on an Nspire will NOT be enough to use things such as internet browsing or gaming. I think this version doesn't come with the "make" command which is really a necessary command to run any useful games.
That being said, good luck newbs.. I have had to learn a lot to even get the tiniest amount of practical use out of Linux on Nspires.
Voginator, can you just link directly to the builds you have posted on TI planet that have things like Links and more commands? :)
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 01:31:19 pm
nspire-linux-builds (http://tiplanet.org/nspire-linux-builds")
The tiny image (initrd) should contain links and the necessary stuff to use it properly (ifconfig).
The X11 image contains X, as the name says :D
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 10, 2013, 01:31:59 pm
Quote
I think this version doesn't come with the "make" command which is really a necessary command to run any useful games.
Strictly speaking, not "run" any useful games, but build most of them ;)
And there's no make or gcc (God forbid g++...) in the builds because the Nspire is far too limited for being a useful build computer (despite being the least limited calculator on the market).
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 01:34:19 pm
Hey, g++ is not bad :P It doesn't feel any slower, at least.
But I don't think you need make, only a linux pc with arm gcc toolchain and some "./configure" skills :-)
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 10, 2013, 01:35:00 pm
Well, Stefan, I happen to think that it could handle building, albeit it may take a while. Less intensive builds may work. I just don't suggest anyone attempt Dolphin-Emu (which I tried!)...

Yayyy xserver! thanks Voginator! I'll boot into this as an fs on a flash drive :D
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on April 10, 2013, 01:37:05 pm
I must say, simply putting Linux on an Nspire will NOT be enough to use things such as internet browsing or gaming. I think this version doesn't come with the "make" command which is really a necessary command to run any useful games.

Actually there were vids or screenshots of some people here running Internet on the Nspire a few months before ???. You need an extra wi-fi dongle and USB adapter, though. But the calc is definitively powerful enough to achieve it, along with some older games. If you try to run a Nintendo Wii emulator, on the other hand...
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 10, 2013, 01:37:36 pm
BTW: It's currently building some more recent images of buildroot, I don't know whether it even boots.
But I shouldn't mention this at all, now nobody wants to test it :-/
Title: Re: nspire Linux Questions
Post by: Levak on April 10, 2013, 08:01:49 pm
nspire-linux-builds (http://tiplanet.org/nspire-linux-builds")
The tiny image (initrd) should contain links and the necessary stuff to use it properly (ifconfig).
The X11 image contains X, as the name says :D
I have a question about those 'images':
Why can't it fit in a initrd.tns file ?
I mean, why is it a .tar.gz and not a .tns like initrd ? It would fit in a CX, wouldn't it ?
Well, my real question is : what is initrd.tns format ? ext2 ? ext4 ? tar.gz ?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 09:04:47 am
initrd.tns is just a symlink to busyboxconfig-latest.ext2.bz2 :D
Quote
I mean, why is it a .tar.gz and not a .tns like initrd ? It would fit in a CX, wouldn't it ?
Nope, the CX has 64MB of RAM, the kernel needs at least 10.
Than you have to load the image into ram, decompress it into ram.
The compressed image occupies already 29 MB, so it won't fit at all.
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 09:10:42 am
what file format do i have to use? ext4/3 ?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 09:12:16 am
For what?
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 09:14:11 am
for the usb drive to put the rootfs.tar.bz2 file on.
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 09:17:20 am
On your usb drive?
You can use every ext version.
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 09:17:56 am
hm i cant get it to work.. it won't mount
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 09:19:04 am
Then you did something wrong.
If you post your steps and the error message, I can help you better ;-)
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 09:37:10 am
I used "sudo tar -xvf  /home/parallels/Desktop/rootfs.tar.bz2 -C /media/rootFS" to put the files on the disk.

bootscript:
kernel linux/zImageX.tns
initrd linux/initrd.tns
cmdline root=/dev/sda
boot

how can i list all storage devices?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 09:43:00 am
Boot normal with initrd and execute "cat /proc/partitions"
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 09:53:19 am
this is what i get on the screen
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 09:54:46 am
So your drive is connected and detected correcly. Can you do "mount /dev/sda /mnt"?
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 09:59:05 am
hm, worked one time.. next time no such device or address
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 10:00:10 am
If it works and the files appear in /mnt it should boot fine, too.
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 10:01:31 am
hm, i will try that
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 10:06:05 am
EXT4-fs (sda): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (sda): couldn't mount as ext2 due to feature incompatibilities
EXT4-fs (sda): recovery complete
EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: (null)

files are listed in /mnt
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 10:06:48 am
That's a success.
BTW: Doublepost :P
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 10:08:44 am
hm, i dont see the double post.
but why would it not boot?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 10:10:09 am
It boots, that isn't an error message. If it still doesn't boot, describe what's not working

Reply #404 and #403
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 10:11:24 am
?? they look different over here ??
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 10:12:33 am
They don't have to be different to be a doublepost. Modify the first one instead of posting ;-)
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on April 11, 2013, 02:27:05 pm
(That's of course unless it has been almost a day and nobody bothered to reply, then you can double-post. Or if you work on a project and somehow made signifiant progress within 12 hours or so)
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 02:55:27 pm
ah oke.

it won't mount when i boot it with the script... :( , but i can mount it after the boot manually but then it's not booted on the drive.. ?
and how do i unmount?
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 11, 2013, 03:14:58 pm
For me, I can boot into the initrd just fine. But I can't boot a flash drive with small_config untarred to it...
I know Linux. I mounted it fine, and it seems to recognize the device! But I have no idea how to boot into Linux from the FS on the flas drive. Step by step instructions, newb proof, are some helpful things?

I run a start_initrd.ll2.tns with the following commands:
kernel linux/zImage.tns
rootdelay=10
cmdline root=/dev/sda rootdelay=10 cx_usb_otg
boot

My flash drive is formatted to ext2.
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 04:14:41 pm
cx_usb_otg is very slow. I recommend you to remove it.
Maybe it resolves your problem?

Quote
it won't mount when i boot it with the script.
Could you show us your script and your error message?
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 04:18:47 pm
Could you show us your script and your error message?
bootscript:
kernel linux/zImageX.tns
initrd linux/initrd.tns
cmdline root=/dev/sda (and tried sda1)
boot

there is no error it boots the initrd
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 04:19:55 pm
You have to remove the initrd line..
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 11, 2013, 04:20:09 pm
If I remove it, it rarely works... and yeah it doesn't boot the usb
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 04:22:54 pm
Quote
If I remove it, it rarely works... and yeah it doesn't boot the usb
Does it work rarely or doesn't it at all?
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 11, 2013, 04:27:13 pm
WEll Linux hangs without it. But, if I use it, it doesn't hang, but I still can't browse/boot into the flash drive... Idk wether or not it recognizes it..
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 04:29:05 pm
You have to remove the initrd line..
that gives me a panic
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 04:33:24 pm
Quote
WEll Linux hangs without it.
If it hangs it's most linkely in the initrd already.
Could you wait for some more time (2 minutes)?
Smallconfig has ifconfig support and tries to setup the network devices.

Quote
that gives me a panic
Which we want to see.
Could you boot into the initrd again, mount the drive and execute "cd /mnt" "stat /mnt/bin/sh"?
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 04:42:11 pm
-sh stat: not found
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 11, 2013, 04:44:44 pm
ok, then "ls -l /mnt/bin/sh"
Title: Re: nspire Linux Questions
Post by: floris497 on April 11, 2013, 04:59:52 pm
nspire wont get past the "gray" screen when booting the os, tried the reset button still now boot that worked. hm, lets try getting the battery out, thats weird it dos not turn off the screen. (stupid usb cable)

i will try that.

Edit
gives me:
lrwxrwxrwx 1 root root 4 jan 12 2013 /mnt/bin/sh -> bash
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 11, 2013, 05:08:07 pm
floris, hold Esc+Menu+Minus (-) on your Nspire and press reset. Then, wait for a white screen with text similar to Casio's large font text. Press reset now. Good as new. :)
Yeah I'm not getting anything going with USB...
Title: Re: nspire Linux Questions
Post by: TheNlightenedOne on April 11, 2013, 10:10:33 pm
On a Touchpad non-CAS, I'm using the expanded kernel in linux/zImage.tns and I extracted the small busybox tar.bz2 to a ext4 flash drive. My bootscript is as follows.

kernel linux/zImage.tns
cmdline root=/dev/sda earlyprintk debug console=tty0 console=ttyAMA0,115200n8 rootdelay=10
boot

I get a kernel panic. What's messing it up? I appreciate any help. Thanks
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 08:52:22 am
Quote
On a Touchpad non-CAS
I can only help for CX calcs, I don't own one of the older ones.
But you could try /dev/sda1.
If it still doesn't work, try to mount it. If that works, I give up, sorry :-/

Quote
floris, hold Esc+Menu+Minus (-) on your Nspire and press reset. Then, wait for a white screen with text similar to Casio's large font text. Press reset now. Good as new.
I have to run the nand tests everytime

Quote
lrwxrwxrwx 1 root root 4 jan 12 2013 /mnt/bin/sh -> bash
That's exactly how it's supposed to be, no idea.
Title: Re: nspire Linux Questions
Post by: floris497 on April 12, 2013, 09:10:20 am
If that works, I give up, sorry :-/
if it works you give up?
That's exactly how it's supposed to be, no idea.
perhaps I need to take an newer kernel.. but the one i'm using is not so old?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 09:12:11 am
Quote
if it works you give up?
If mounting works but booting doesn't I give up, yes.

Quote
perhaps I need to take an newer kernel.. but the one i'm using is not so old?
The latest kernel confirmed to boot from usb drives (tested by me) is nspire-linux-builds (http://tiplanet.org/nspire-linux-builds/zImage_expanded_20130211_0728.tns)
Title: Re: nspire Linux Questions
Post by: floris497 on April 12, 2013, 09:31:27 am
i can mount it manually but the stat command in not included..
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 09:32:59 am
Yes, we tried "ls -l" instead.
It mounts, that's enough. But it doesn't on boot, which doesn't make any sense to me :(
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 12, 2013, 01:35:44 pm
Well I know Linux well enough to diagnose my own problems. Of course, I know ARM well enough to say "hey, I know why this MAY not be working!" So when I had all these problems, I was furious...
I'm going to have to recommend that people trying to boot into a flash drive first configure the kernel to USE the USB. Different model calculators will obviously have differences. In my case, USB WILL NOT work without cx_usb_ogb as part of my cmdline arguments before boot. If you still have problems after asking for help like I have, research the cause of it. Use Linux to find out. I ended up learning that I had to upgrade my Kernel, use ext4 not ext2 as a filesystem, find a low power and simple Kingston flash drive, and boot into the initrd before finally running Linux on a flash drive... But it still didn't work. Solution?
Powered USB hub. That is what I'm hoping will work (It should arrive tomorrow...)...

Vog, I only had to run the NAND tests once. Oh, yes, DONT leave your flash drive in the calculator if it hangs and you have to reboot with reset... I observed my calculator at less than 1 Mhz. After all night, it booted. Then, I kept watching it and the screen, pixel by pixel, updated. So I found that a nuisance.

I had Linux running once with a Penguin at the top, but not since the first time I ran it.. Is this because it was my first run, or am I REALLY missing something that could solve all my problems?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 01:45:36 pm
Quote
I had Linux running once with a Penguin at the top, but not since the first time I ran it.. Is this because it was my first run, or am I REALLY missing something that could solve all my problems?
I thought it occupies so much space on the tiny display so I removed it in the kernel .configs :-)

Quote
Oh, yes, DONT leave your flash drive in the calculator if it hangs and you have to reboot with reset... I observed my calculator at less than 1 Mhz. After all night, it booted. Then, I kept watching it and the screen, pixel by pixel, updated. So I found that a nuisance.
I keep my hub plugged in all day and never had any problems (if soft reboot).

Quote
In my case, USB WILL NOT work without cx_usb_ogb as part of my cmdline arguments before boot.
That's weird. I tested cx_use_otg and it was VERY slow (<100 kB/s) but I was able to connect it to my computer and usb hub without a reboot :-)
Without cx_use_otg it works fine the whole time, with speeds > 500 kB/s (which is still slow as hell but acceptable).
Maybe there are some compatibility problems with some usb devices? With cx_usb_org USB 2.0 devices work, without only USB 1.1.

We are currently working on a rewrite for device tree support (it boots, but without lcd), so maybe it works better with DT?
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 12, 2013, 01:49:40 pm
I could test for you once my hub gets here. Hard, or cold, reboot (depending on where you're from) is what I did when my flash drive was unbelievably slow. I never waited long enough for the home menu to come up fully, but I could tell it was trying.
Well cx_use_otg is what it's called? Oh.. Oops.. I could try that now!
With it, I might have my problems solved. I don't mind it being slow, honestly. My dad can tell you of the days when compiling Linux took a supercomputer 2 days to do for you :P

DT meaning what?

Oh, and ^+Alt+Del doesn't reboot...
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 01:54:25 pm
Actually, when I was little and had no idea of linux (~10 years old) I created a VM with VBox on WinXP and installed Ubuntu 7.04 with 384MB RAM available to experiment a bit with (I was very curious about everything IT ;-) ). The CPU was 1 GHz and compiling the kernel took a whole day :-/
Title: Re: nspire Linux Questions
Post by: floris497 on April 12, 2013, 02:44:24 pm
strange, my battery seems to get fuller and fuller after using linux :S
i got it ti boot on the usb drive :) , but before i can log in it trows em out and leaves me with an message that it cant open ./sbin/[somefile i cant remember]
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 03:16:10 pm
"./sbin.."? It should be just "/sbin". Are you using the latest rootfs from yesterday? There may be some bugs in it :-/

Quote
DT meaning what?
DeviceTree, that's actually a textfile you have to boot with. linuxloader2 already supports it and most things are working now.
In this textfile the complete hardware is described, so it can run on more platforms without having to recompile the kernel.
But for you it basically means just one file more in "/documents/linux" :P
We had to implement support because it's required for getting into mainline :-/

Quote
Oh, and ^+Alt+Del doesn't reboot...
Really? Works well for me: ctrl + var + calulator
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 12, 2013, 03:16:27 pm
:) I'm only 15, my idea of a slow computer is the one I use now before I dusted it off and rebuilt it.
My dad is a computer extraordinaire... Really he has knowledge and experience few could compete.. So he is an awesome help. Where he was gifted with computers, I learned how to fix hardware. He bought a new computer after our hard drive crashed in 2005 and I fixed the hard drive recently (meticulous job!)and was given permission to do whatever I wanted with money I earned with it :)
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 03:18:58 pm
Quote
I'm only 15, my idea of a slow computer is the one I use now before I dusted it off and rebuilt it.
Me, too!

Quote
He bought a new computer after our hard drive crashed in 2005 and I fixed the hard drive recently (meticulous job!)and was given permission to do whatever I wanted with money I earned with it :)
What was broken? The controller board? I can't imagine how to repair if it was the motor or other moving parts inside :-/
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 12, 2013, 03:24:48 pm
Actually, a multitude of things. For one, some connectors were fried (Looked like a THERMAL event, of all things!) between the cable and the port on the end. The controller was fine. The mechanics of MOST of a hard drive are trivial and actually not that precise, really. The fne metal tips arrangement were all stuck at the top of a small rod that should've been able to move freely. So I judge nudged it and tested it and it worked (with a few broken sectors, dust caused that. Seriously, hard disks are super sensitive.) :)
Linux is just being mean to me now. I'm going to reclock my Nspire to 150Mhz, and try again... Root wouldn't even log in this time, but USB is working. I think it requires a full charge. My hub should be here any second.
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 03:29:44 pm
Quote
My hub should be here any second.
Good luck!

Quote
The fne metal tips arrangement were all stuck at the top of a small rod that should've been able to move freely.
Isn't that the standby position onto which it moves to be more resistent against shocks when turned off?
I had to loose it to make a loudspeaker like this (http://www.instructables.com/id/Hard-Drive-Speaker-System/).
The discs are now serving as decoration ;)
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 12, 2013, 03:35:13 pm
Vog, you're right on. Not that hard, see? :)
Well I'll use Linux as I port Genesis Plus to the Nspire.. :)
Title: Re: nspire Linux Questions
Post by: floris497 on April 12, 2013, 04:19:07 pm
is there already some basic usb audio drive available?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 04:20:14 pm
Do you mean "driver"? Nope, they're not included in expandedconfig. But if you own a device supported by linux you can easily add support.
Title: Re: nspire Linux Questions
Post by: floris497 on April 12, 2013, 04:27:09 pm
yes i meant driver. i'm not so good with all those drive thinks how do i install it? i cant even get an usb drive to work properly :S
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 12, 2013, 04:29:08 pm
Quote
i'm not so good with all those drive thinks how do i install it?
What links? You can't install "a driver", you have to recompile the kernel. Also, you have to know which driver supports your device.
Title: Re: nspire Linux Questions
Post by: floris497 on April 12, 2013, 04:35:12 pm
i never compiled a kernel before, and my usb device needs no drivers, so i think it needs standard drivers?
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 12, 2013, 04:47:05 pm
Well if I wanted to add functionality so my sound card works, I'd have to find out what firm/software my sound card uses and recompile the Kernel with that added. :)
You can google it!
Title: Re: nspire Linux Questions
Post by: floris497 on April 12, 2013, 04:55:41 pm
Probably :) (and then i get stuck on forums saying "Google it" LOL)
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 13, 2013, 01:55:57 am
Searching for the USB VID:PID (the pair of 16-bit hex numbers displayed by `lsusb`) usually gives results, and besides, you can grep the VID and PID into the kernel's source code, which gives even better results :)
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 13, 2013, 02:29:16 pm
Hello !
I'm considering using linux on my nspire.
What do you think of the idea of running a pdf reader on it ?
Would it be usable ?

Thank you for your work ! It's really interesting to be able to run linux on the nspire.
Yama
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 13, 2013, 02:37:20 pm
Quote
What do you think of the idea of running a pdf reader on it?
Why not? The only question would be where to store them.
But that's no problem if you want to have to use an usb drive the whole time.

Quote
Would it be usable ?
Yes, I think so.
Xpdf (http://www.foolabs.com/xpdf/download.html) seems to be the right application to port.
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 13, 2013, 02:53:04 pm
Quote
What do you think of the idea of running a pdf reader on it?
Why not? The only question would be where to store them.
But that's no problem if you want to have to use an usb drive the whole time.
Are you saying that an usb drive isn't necessary to run X+xpdf ?
I came to understand that the usb drive was necessary to run X. Was I wrong ?
I only want to have Linux+X+Xpdf+ about 20Mo of PDFs ...

I wondering if it would be okay to solder and usb drive inside the nspire ...

Quote
Quote
Would it be usable ?
Yes, I think so.
Xpdf (http://www.foolabs.com/xpdf/download.html) seems to be the right application to port.
When you say port ... you say compiling right ? Nothing hard or too long ?
I'm running out of time on this matter ...
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 13, 2013, 02:53:06 pm
Not that it matters too much for our platform, but Xpdf's code base is not known for robustness: there has been a long list of vulnerabilities in Xpdf.
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 13, 2013, 02:56:31 pm
But sadly theres no real lightweight alternative (couldn't find some by quick search) :-/

Quote
When you say port ... you say compiling right ? Nothing hard or too long ?
I'm running out of time on this matter ...
Nope, it can be as quick as typing CC=arm-none-eabi-gcc make && make install if you're using linux ;)
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 13, 2013, 07:55:30 pm
:) This was one of the main reasons I wanted Linux
Title: Re: nspire Linux Questions
Post by: Vsod99 on April 13, 2013, 09:03:25 pm
Sorry in advance for being an absolute noob....
how do you run X?
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 14, 2013, 02:15:13 am
Usually `startx`, if the tool exists.
Title: Re: nspire Linux Questions
Post by: Vsod99 on April 14, 2013, 02:00:51 pm
Usually `startx`, if the tool exists.
apparently it doesn't :(
Title: Re: nspire Linux Questions
Post by: Hooloovoo on April 14, 2013, 11:18:33 pm
then, you must have the wrong rootfs. try an xconfig from the builds site.
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 17, 2013, 01:18:57 pm
Hello.
I would like to confirm that I understand well the usb support matter ...

1) I plug the usb while in the Nspire OS then boot linux => the nspire is the host and will keep the host status until I reboot it.
2) I plug the usb after booting linux => the nspire is the device and the usb (computer ?) is the host. I can't use an usb key in this mode.
3) I use the cx_usb_otg kernel parameter and the host/device status of the nspire depend of the cable I'm using (if it is an OTG cable the calc will be a host and if it a normal cable the calc will be a device).

Is it right ?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 17, 2013, 01:35:22 pm
No, it isn't.
If you use OTG, you can use both, auto detected, if not, which works depends on the nspire os.
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 17, 2013, 01:46:27 pm
Okay, thank you :)
The lack of the otg feature isn't a problem for me.

And, by the way, you confirm me that my usb key isn't detected because I have done something wrong when soldering my miniUSB <=> USB cable ...
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 17, 2013, 04:38:14 pm
Well apparently it only works with type A adapters, and I think the parameter is actually "cx_use_otg", or at least that's what Vog told me
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 17, 2013, 05:47:53 pm
@Vogtinator
Sorry, I don't understand your edited answer ...
- If I use OTG, the calc mode will be device if I use a 4-pin mini-usb cable or host if I use a 5-pin (with a bridge between pin 5 and pin 4) mini-usb cable. And the mode can be switched without rebooting the calc.
- If I don't use OTG, the usb mode will follow that rule (and will not follow the "cable rule") :
Quote
USB support is mostly working. The only thing missing is a USB PHY driver. The USB controller driver is currently unable to switch seamlessly between USB host and USB device mode because of this. Unfortunately, nothing much is known about the USB PHY.
That's probably the same reason why sometimes USB devices aren't recognised in USB host mode - the USB PHY hasn't changed the USB hardware to host mode.
To work around this, we get the Nspire OS to set the right modes in the USB PHY before booting Linux.
For USB Host mode: insert a USB OTG cable's A end or a USB device into the calculator while still inside the Nspire OS before running the bootloader.
For USB Device mode: connect the Nspire to a computer while in Nspire OS before running the bootloader.

Or there is something that I don't understand ?

@Dapianokid
I don't see why It should work with a type A instead of a type B when TI uses type B connectors ...
I'm not even sure that we can use a type A male connector with a type B female connector ...
I think that the parameter is "cx_usb_otg" because it's written on hackspire

edit :
Okayyyy
It's written usb type A in my quotation !!!
There is definitively something that I don't understand  :banghead:

edit n°2 :
So, if I understand well, it is not possible to use an usb key without an OTG usb cable ?!?
If I put a 4 pin mini-usb cable, nothing happens to the usb PHY who keeps is previous state which is device mode ... It makes me very unhappy  :w00t:
But I still don't see why I have to use a type A usb instead of a type B usb ...
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 18, 2013, 12:03:29 pm
Nspires support all mini-USB hardware male hardware, but the OS doesn't host.
So you can use any USB mode with Nspire's USB port
Title: Re: nspire Linux Questions
Post by: Hooloovoo on April 18, 2013, 02:30:43 pm
Actually, the OS is hosting when it is collecting data, and one calculator is hosting when sending a file. I think that the viewscreen also uses host mode on the calculator, while the veiwscreen is a dressed-up CAS+.

Yamashita: The USB A is used by TI in the link cable, so that when two calculators are linked, on is the host and one is the peripheral. It is not possible to use a flash drive without a mini-A connector. Before I found one at a garage sale one time, I put a little peice of tinfoil into a mini-B, which I had attached to a female standard USB cable. A usb A connector signifies to the device that it will be a host, and a USB B connector tells the device that it is a peripheral. USB OTG just means that a device is able to be both a peripheral and a host.
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 18, 2013, 02:33:54 pm
Link to schematics on your little USB port hack?
Title: Re: nspire Linux Questions
Post by: Hooloovoo on April 18, 2013, 02:46:39 pm
(http://pinouts.ru/connectors/usb_a_b_male.gif)
USB mini-A is the one on the bottom. The only difference that the device can tell is with pin x. If pin x is connected to pin 4 with something such as a piece of tinfoil, the device thinks it is a USB A.
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 18, 2013, 02:47:44 pm
oh thats awesome
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 18, 2013, 03:16:00 pm
Thank you for the explanation fortytwo.
I now quite understand how all this mess works :p
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 21, 2013, 11:18:12 am
Okay !
Debian is installed and it seems to works ... but I encountered some type of a problem ...
When I run dpkg --configure -a, I get an error :
Code: [Select]
dpkg : error : unable to access dpkg status area : No such file or directoryIs this behaviour expected ?
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on April 21, 2013, 11:19:55 am
This dpkg message indicates that there's no /var/lib/dpkg/status file, which is not expected.
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 21, 2013, 02:22:25 pm
Instead of the apt cache, I have like nothing in /var ...
Let's see where is the problem !

edit :
Okay, problem solved. It was my fault.
I have now installed X11 and it seems to work but the touchpad does nothing ...
Where is the problem ?

edit n°2 : Maybe the problem isn't the touchpad ... If the screen turn off while X is "running", I can't wake it ...

I tested the TI-Planet xconfig build and startx isn't included in it ...
Title: Re: nspire Linux Questions
Post by: kaimano on April 22, 2013, 06:16:17 am
May I ask which kind of procedure did you use for debian installation? Did you made an image of a working partition on a pen drive? Can the modified kernel for the NSPIRE manage a working Debian partition? Any explanation would be greatly appreciated. Thanks and regards

Tiziano
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 22, 2013, 07:07:08 am
Actually, it's quite simple. It's exactly the same as running the xconfig rootfs from TI-Planet but with a debian rootfs.

Create the rootfs with debootstrap (Thank you Lionel for the script) :
Code: [Select]
# Make sure we have the appropriate packages.
apt-get install debootstrap multistrap binfmt-support
# This package ought to register the appropriate definitions for binfmt-support
apt-get install qemu-user-static
# Load binfmt support
modprobe binfmt_misc
# Start a debootstrap that will fail when trying to install the packages
mkdir $DEST_DIR
cd $DEST_DIR
debootstrap --verbose --arch=armel sid . http://ftp.fr.debian.org/debian/
# Fix it. ln assumes the programs are on the same partition, use cp instead if they aren't.
ln /usr/bin/qemu-arm-static ./usr/bin/qemu-arm-static
# Start debootstrap again, and while at it, we can add some packages into the mix :)
debootstrap --verbose --arch=armel --include=locales,build-essential sid . http://ftp.fr.debian.org/debian/
I have replaced sid by testing which will become stable in a few months
Plus, I have added xpdf and the xorg metapkg

And then, I used qemu to finish the installation, create the root password and install xcas : http://wiki.debian.org/QemuUserEmulation (appendix)

Once you have your rootfs, you can put it on your pen drive ;)
If you succeed to run X, let me know !
Title: Re: nspire Linux Questions
Post by: itechnoguy on April 23, 2013, 01:36:15 pm
I've been having an issue with X/Xorg, where after I issue the command, it loads to a blank screen. I have a working rootfs, and everything else works. (I got it from TI-Planet)
Am I missing a xinitrc file? Also, I would post my log file but I don't have access to a *nix computer right now.
I'm using a CX with a USB OTG hub. OTG mode is enabled, since my rootfs didn't work without it. The rootfs is the full rootfs, most recent release.
Edit 2: Never mind. I'm just going to use an older build. It seems that something with xinitrd is broken in the latest release.
Title: Re: nspire Linux Questions
Post by: kaimano on April 24, 2013, 03:52:07 am
Sorry to ask again for help but yesterday evening I had a bad experience. I untar the Full buildroot image (xconfig) into my usb key and tried to boot it. First boot stopped saying that tty0 could not be found. I tried another boot script and the second time stopped with error

r4:0000000000 r3:0000000000

I saw another person had this error in the forum but couldn't find a solution. Third boot my NSPIRE crashed and was caught in a restart loop. I made first a reset, then a complete format, then I removed the battery and finally the maintenance mode let the nspire resurrect.

After this problems, I kindly ask if some could give some clear instructions and link to working images and boot scripts.

Thanks

Tiziano
Title: Re: nspire Linux Questions
Post by: Yamashita Ren on April 24, 2013, 05:54:24 am
1) First, boot the initrd image and see if the pen drive is detected.
2) Use the xconfig image with
Code: [Select]
kernel Linux/zImage.tns
cmdline root=/dev/sda1 rootdelay=10 cx_usb_otg
boot
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 24, 2013, 05:17:03 pm
I've gotten USB working, a keyboard and flash drive are detected! BUT, it doesn't seem to MOUNT the drive. I have been using an initrd to test. Now, I want to boot straight into Linux on my flashdrive, the xconfig? Or even Debian ARM Linux. I JUST can't seem to get it to do so.
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 27, 2013, 11:28:37 am
Quote
BUT, it doesn't seem to MOUNT the drive. I have been using an initrd to test.
If you can mount the drive with mount /dev/sda<whatever> <whereever> and it doesn't work with kernel <whatever> root=/dev/sda<whatever>, I can't help you.
But you can try the following:
Code: [Select]
mount /dev/sda<whatever> /media
mount -t devtmpfs none /media/dev
mount --bind /proc /media/proc
mount --bind /sys /media /sys
chroot /media[/quote]
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 27, 2013, 11:33:32 am
Okay well I type mount --help and it prints a huge block text. My dad has tried to set environment variables to allow for it NOT to print it all at once, unfortunately it doesn't work. Bleh
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 27, 2013, 11:34:03 am
mount --help | less ?
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 27, 2013, 01:39:16 pm
Tried.
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 27, 2013, 02:06:20 pm
Did it work? Also, why do you need to read mount --help?
If you want to know how to use it, you can read http://linux.die.net/man/8/mount (http://linux.die.net/man/8/mount), too.
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 27, 2013, 04:00:05 pm
Vog, I was hoping the solution to the problem would apply to everything.
Say I DO get USB working (hypothetically), what would I have to do to boot into it? and is it possible to start from the initrd and then boot into the drive?

Well I've tried what you've suggested and I just can't seem to get it to mount. It may be a problem with my kernel, drive, (I've tried multiple), or even my newer calc model
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 27, 2013, 04:01:27 pm
It (kind of) is. You just have to change "/" to the mountpoint of the drive, which chroot does.
Title: Re: nspire Linux Questions
Post by: Dapianokid on April 27, 2013, 04:37:46 pm
Ooooh I believe I see the problem! (BTW read the above post by me)

My fstab has some very outdated filesystem listings. I need an initrd of a very new build or xconfig, and then I can set things up to my liking. :)
Title: Re: nspire Linux Questions
Post by: kaimano on May 06, 2013, 07:59:01 am
Hi everybody

I've tried to boot with many rootfs on USB (Debian, Ubuntu, Bodhilinux) and all of them gave me an error about "init not found". The USB device is recognized and mounted. Any idea about how to solve this problem?

Thanks and regards

Tiziano
Title: Re: nspire Linux Questions
Post by: Vogtinator on May 06, 2013, 08:05:41 am
By default the kernel tries to execute /sbin/init.
Does it exist and have the right permissions?
Title: Re: nspire Linux Questions
Post by: floris497 on August 27, 2013, 04:20:18 pm
I have no idea how to compile my own version.. can someone compile a kernel with support for 'screen'? to interact with my arduino.

or teach me how to do it myself.

Thanks
Title: Re: nspire Linux Questions
Post by: Vogtinator on August 27, 2013, 04:21:59 pm
Do you get an error message on executing screen? Or does you initrd not include screen at all?
And why do you need screen for your arduino?
Title: Re: nspire Linux Questions
Post by: floris497 on August 27, 2013, 04:23:34 pm
my current version does not have screen. you can communicate with the arduino with screen, if you use cat or echo to the arduino it will reboot, as far as i know screen keeps contact all the time
Title: Re: nspire Linux Questions
Post by: Vogtinator on August 27, 2013, 04:28:43 pm
Quote
if you use cat or echo to the device it ail reboot as far as i know
What device reboots?

BTW: Compiling now
Title: Re: nspire Linux Questions
Post by: floris497 on August 27, 2013, 04:29:57 pm
the Arduino wil reboot with every new contact that is made with it

And Thanks :)
Title: Re: nspire Linux Questions
Post by: Vogtinator on August 27, 2013, 05:42:04 pm
Build finished, download here (http://tiplanet.org/nspire-linux-builds/initrd.tns).

Edit: Untested
Title: Re: nspire Linux Questions
Post by: floris497 on August 28, 2013, 04:54:54 am
Thank you, I will test it as soon as i find my My usb cable in my room of endless useless and useful stuff :p
Title: Re: nspire Linux Questions
Post by: Tremled on October 17, 2013, 05:36:41 pm
I'm probably in the wrong section but I've found a bug in the current TI-System that makes the nspire cx cas crash and reboot. Where should this be reported to?
(And sorry again for posting in the wrong section...)
Title: Re: nspire Linux Questions
Post by: Levak on October 17, 2013, 06:04:29 pm
I'm probably in the wrong section but I've found a bug in the current TI-System that makes the nspire cx cas crash and reboot. Where should this be reported to?
(And sorry again for posting in the wrong section...)
To report ... to the community in order to hack the OS, right ?
You may want to create a new topic, by giving a lot more detail than your current post, suchas the exact OS version.
Title: Re: nspire Linux Questions
Post by: Lionel Debroux on October 18, 2013, 03:21:49 pm
This should not be reported publicly, to begin with ;)
Title: Re: nspire Linux Questions
Post by: Tremled on October 19, 2013, 06:33:12 am
You may want to create a new topic
This should not be reported publicly
So I shouldn't create a new topic, right?
Then where should I report this bug to?
Title: Re: nspire Linux Questions
Post by: Hayleia on October 19, 2013, 06:44:37 am
Scroll down to "How can I help" on this page (http://ndlessly.wordpress.com/2013/09/18/on-the-way-to-ndless-3-2/).
Title: Re: nspire Linux Questions
Post by: Legimet on October 19, 2013, 03:00:00 pm
Just PM ExtendeD, the developer of Ndless, or send him an email (his email address is in the "How Can I Help" section of the page Hayleia linked to)
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on October 24, 2013, 02:39:24 am
Yeah, due to current circumstances, it would be best to report the bug to the Ndless team rather than TI first, in case it can be used to allow Ndless on newer OSes. That said, if it's a bug that can cause serious calc damage or hinder its useability, then I guess it would be better to report it to TI, though.
Title: Re: nspire Linux Questions
Post by: Tremled on October 24, 2013, 03:23:17 pm
I sent ExtendeD a PM describing this bug :)
As I've used it many times before and couldn't notice anything being damaged or inoperative I don't think reporting it to TI is necessary.
Title: Re: nspire Linux Questions
Post by: red-green on April 27, 2014, 12:34:04 pm
Another question:

If i put an xconfig rootfs on a flash drive, can i use the busybox initrd to boot it?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 27, 2014, 12:37:08 pm
No, the busybox initrd isn't intended to be used as a "normal" initrd, instead of mounting external storage and switching "/" it drops you into a shell.
It should be possible to "mount --bind" the /dev, /sys, /proc and /var/run trees and chroot, though.
Title: Re: nspire Linux Questions
Post by: red-green on April 27, 2014, 02:24:18 pm
Is there a place i could find/build a suitable initrd for xconfig?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 27, 2014, 03:15:53 pm
You can't. X11 doesn't fit into RAM three times (compressed with xz & uncompressed in ext4 filesystem & loaded as executable).
Title: Re: nspire Linux Questions
Post by: red-green on April 27, 2014, 05:38:34 pm
But is there an initrd that will load Xconfig from a flash drive?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 28, 2014, 11:04:31 am
No, you can boot from your flash drive directly.
Title: Re: nspire Linux Questions
Post by: red-green on April 28, 2014, 11:21:55 am
If i did that, i assume the LinuxLoader script would look like this:

Code: [Select]
kernel linux/kernel.tns
cmdline root=/dev/sda
boot

Is that right?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 28, 2014, 11:24:19 am
Exactly. But the newer devicetree based kernel doesn't support USB at all, so you have to use the older kernel.
And append "rootdelay=5", as USB seems to be really slow on the nspire.
Title: Re: nspire Linux Questions
Post by: red-green on April 28, 2014, 11:38:11 am
Is the older kernel on this page?: http://tiplanet.org/nspire-linux-builds/
Title: Re: nspire Linux Questions
Post by: red-green on April 28, 2014, 11:53:12 am
Oh, one last question, how do i upvote/add reputation (to you)?
Title: Re: nspire Linux Questions
Post by: Vogtinator on April 28, 2014, 12:18:29 pm
Quote
Is the older kernel on this page?: http://tiplanet.org/nspire-linux-builds/
Yup, it's the "older kernel" :P

Quote
Oh, one last question, how do i upvote/add reputation (to you)?
If you can't see the red and green voting buttons on the left below the post rating, I guess you need to be at least LV2 or 3.
Title: Re: nspire Linux Questions
Post by: Ivoah on September 03, 2014, 12:25:41 pm
Would it be possible to make a debian rootfs for linux on the nspire using debootstrap?
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 03, 2014, 12:29:47 pm
IIRC somebody did that already.
Title: Re: nspire Linux Questions
Post by: Ivoah on September 03, 2014, 01:34:05 pm
is it as simple as using debootstrap for armel?
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 03, 2014, 03:28:46 pm
Yes, it should be. Just be sure it's for ARMv5 (ARM926ej-s) and not above.
Title: Re: nspire Linux Questions
Post by: Hooloovoo on September 03, 2014, 03:42:49 pm
Yes, I have put debian on a flash drive for the nspire, and I did it with debootstrap. There's a script for doing that here (http://www.omnimaga.org/ti-nspire-projects/calling-all-linux-kernel-developers!/msg339537/#msg339537).
Title: Re: nspire Linux Questions
Post by: Ivoah on September 03, 2014, 09:16:45 pm
I managed to get a debian rootfs, but now I can't seem to install the firmware-ralink package (for my wifi dongle). If I chroot into the rootfs using qemu and apt-get install firmware-ralink it doesn't work :(


EDIT: apt-get install firmware-ralink does work, but the module won't load
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 12:18:18 pm
Well, how do you load the module? Did you compile it?
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 06:08:11 pm
I didn't compile it, I used apt-get, and it is supposed to be automatically loaded...
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 06:10:44 pm
Debian's kernel modules aren't compatible. It's a different kernel version, so you'll need to compile it yourself.
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 06:55:57 pm
I am thoroughly confused.
I am trying to get USB host to work and I ran "dd if=/*rootfs* of=/media/USB
and got 3 files,
xconfig_20140223_1734.ext2.bz2
xconfig_20140223_1734.tar.xz
and xconfig-latest.tar.xz.
This didn't look right to me but I decided to attempt to boot from it anyway.
Needless to say, it didn't work.
What did I do wrong?
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 06:57:23 pm
@Vogtinator Oh, that makes sense... I have gcc and make on my calc, how would I compile and install the module?
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 07:02:48 pm
Quote
I am thoroughly confused.
I am trying to get USB host to work and I ran "dd if=/*rootfs* of=/media/USB
and got 3 files,
xconfig_20140223_1734.ext2.bz2
xconfig_20140223_1734.tar.xz
and xconfig-latest.tar.xz.
This didn't look right to me but I decided to attempt to boot from it anyway.
Needless to say, it didn't work.
What did I do wrong?
You need to decompress the files first.

Quote
@Vogtinator Oh, that makes sense... I have gcc and make on my calc, how would I compile and install the module?
No idea. Search for the module name, get the source and read the instructions. Also, don't compile on the calc, it'll take hours.
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 07:04:46 pm
All of them?

Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 07:06:08 pm
.bz2 is bzip2 compressed and .xz XZ-compressed.
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 07:07:59 pm
yeah but I started with only one file and ended up with 3...

Edit: I'm an idiot. tar xf...
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:12:40 pm
here is the source for the driver: http://www.mediatek.com/AmazonS3/Downloads/linux/DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.bz2
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:17:55 pm
No idea. Search for the module name, get the source and read the instructions. Also, don't compile on the calc, it'll take hours.


How would I setup a cross-compiler for linux on the nspire?
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 07:19:12 pm
Okay I'm now getting a bunch of "operation not permitted" errors despite the fact that I'm root and using Sudo
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:21:02 pm
Okay I'm now getting a bunch of "operation not permitted" errors despite the fact that I'm root and using Sudo


you shouldn't need to use sudo if you are root...
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 07:22:42 pm
Okay I'm now getting a bunch of "operation not permitted" errors despite the fact that I'm root and using Sudo


you shouldn't need to use sudo if you are root...
I still get the errors sudo or no sudo
Edit:

tar: ./var/tmp: Cannot create symlink to `../tmp': Operation not permitted
tar: ./var/spool: Cannot create symlink to `../tmp': Operation not permitted
tar: ./var/log: Cannot create symlink to `../tmp': Operation not permitted
tar: ./var/lib/pcmcia: Cannot create symlink to `../../tmp': Operation not permitted
tar: ./var/lib/misc: Cannot create symlink to `../../tmp': Operation not permitted
tar: ./var/lib/dbus: Cannot create symlink to `/tmp/dbus': Operation not permitted
tar: ./var/lib/dhcp: Cannot create symlink to `/tmp': Operation not permitted
tar: ./var/run: Cannot create symlink to `../tmp': Operation not permitted
tar: ./var/lock: Cannot create symlink to `../tmp': Operation not permitted
tar: ./var/cache: Cannot create symlink to `../tmp': Operation not permitted
tar: ./etc/mtab: Cannot create symlink to `/proc/mounts': Operation not permitted
tar: ./etc/fonts/conf.d/10-scale-bitmap-fonts.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf': Operation not permitted
tar: ./etc/fonts/conf.d/80-delicious.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/80-delicious.conf': Operation not permitted
tar: ./etc/fonts/conf.d/65-fonts-persian.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/65-fonts-persian.conf': Operation not permitted
tar: ./etc/fonts/conf.d/20-unhint-small-vera.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/20-unhint-small-vera.conf': Operation not permitted
tar: ./etc/fonts/conf.d/69-unifont.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/69-unifont.conf': Operation not permitted
tar: ./etc/fonts/conf.d/90-synthetic.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/90-synthetic.conf': Operation not permitted
tar: ./etc/fonts/conf.d/51-local.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/51-local.conf': Operation not permitted
tar: ./etc/fonts/conf.d/50-user.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/50-user.conf': Operation not permitted
tar: ./etc/fonts/conf.d/60-latin.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/60-latin.conf': Operation not permitted
tar: ./etc/fonts/conf.d/45-latin.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/45-latin.conf': Operation not permitted
tar: ./etc/fonts/conf.d/40-nonlatin.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/40-nonlatin.conf': Operation not permitted
tar: ./etc/fonts/conf.d/30-urw-aliases.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/30-urw-aliases.conf': Operation not permitted
tar: ./etc/fonts/conf.d/65-nonlatin.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/65-nonlatin.conf': Operation not permitted
tar: ./etc/fonts/conf.d/30-metric-aliases.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/30-metric-aliases.conf': Operation not permitted
tar: ./etc/fonts/conf.d/49-sansserif.conf: Cannot create symlink to `/usr/share/fontconfig/conf.avail/49-sansserif.conf': Operation not permitted
tar: ./etc/resolv.conf: Cannot create symlink to `../tmp/resolv.conf': Operation not permitted
tar: ./usr/sbin/inetd: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/setlogcons: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/rdate: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/loadfont: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/fdformat: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/deluser: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/dnsd: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/readprofile: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/nandwrite: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/addgroup: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/killall5: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/adduser: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/nanddump: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/arping: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/ether-wake: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/crond: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/chroot: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/sbin/delgroup: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/xz: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/sort: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/tee: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/traceroute: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/renice: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/less: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/find: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/setsid: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/tftp: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/uudecode: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/xargs: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/microcom: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/nslookup: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/wc: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/logname: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/telnet: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/who: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/unzip: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/md5sum: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/uniq: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/unxz: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/clear: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/[: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/lsof: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/lzma: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/lspci: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/cut: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/time: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/whoami: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/mesg: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/diff: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/fuser: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/xzcat: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/[[: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/top: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/cmp: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/ipcrm: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/tty: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/head: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/printf: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/sha512sum: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/last: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/dos2unix: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/awk: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/chrt: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/vlock: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/unlzma: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/sha256sum: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/sha1sum: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/tail: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/od: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/reset: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/expr: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/lzcat: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/eject: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/yes: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/patch: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/hexdump: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/mkfifo: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/id: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/uptime: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/hostid: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/cksum: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/dc: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/readlink: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/ipcs: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/dirname: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/passwd: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/killall: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/crontab: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/which: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/free: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/unix2dos: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/uuencode: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/ar: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/tr: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/fold: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/realpath: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/sha3sum: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/test: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/strings: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/logger: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/du: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/install: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/nohup: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/env: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/basename: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/bin/seq: Cannot create symlink to `../../bin/busybox': Operation not permitted
tar: ./usr/lib/terminfo: Cannot create symlink to `/usr/share/terminfo': Operation not permitted
tar: ./usr/lib/libuuid.so: Cannot create symlink to `../../lib/libuuid.so.1.3.0': Operation not permitted
tar: ./usr/lib/libblkid.so: Cannot create symlink to `../../lib/libblkid.so.1.1.0': Operation not permitted
tar: ./usr/lib/X11/app-defaults: Cannot create symlink to `../../../etc/X11/app-defaults': Operation not permitted
tar: Exiting with failure status due to previous errors

Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:31:57 pm
Make sure the flash drive is formatted as ext4
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 07:35:14 pm
Yes. Also be sure you target the correct folder, otherwise you'll fuck your whole system up.
I accidentially untard it onto "/", requring reinstallation.

Quote
http://www.mediatek.com/AmazonS3/Downloads/linux/DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.bz2
Doesn't look like it'll work, sadly. With some major fiddling you may get it to compile, but the kernel APIs change rapidly.
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 07:39:13 pm

LOL that must have SUCKED!
How do you specify a directory?
Also, you do you format a drive in debian?
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:44:10 pm
@Vogtinator why won't it work?
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 07:47:09 pm
Quote
LOL that must have SUCKED!
How do you specify a directory?
-C destdir
Quote
Also, you do you format a drive in debian?
mkfs.ext4 /dev/sdXY

Quote
@Vogtinator why won't it work?
It says "2.6" as kernel version - the nspire version is at 3.14 I think.
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:49:03 pm
It says "2.6" as kernel version - the nspire version is at 3.14 I think.


Shouldn't something made for an older version work on a newer version?
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 07:50:49 pm
That rule applies only to userspace. Kernelspace changes really fast.
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:51:49 pm
Darn :( do you know what wifi dongles would work with linux on the nspire?
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 04, 2014, 07:53:27 pm
Those which are supported by the kernel directly, without any extra modules.
Search through the kernel's config options, choose and compile.
Title: Re: nspire Linux Questions
Post by: Ivoah on September 04, 2014, 07:56:20 pm
Search through the kernel's config options, choose and compile.


What do you mean?
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 08:21:25 pm
Quote
LOL that must have SUCKED!
How do you specify a directory?
-C destdir
Quote
Also, you do you format a drive in debian?
mkfs.ext4 /dev/sdXY

Quote
@Vogtinator why won't it work?
It says "2.6" as kernel version - the nspire version is at 3.14 I think.

Edit: nevermind. finally. got it to work. now: How do you Debian? :P
Title: Re: nspire Linux Questions
Post by: Vsod99 on September 04, 2014, 09:09:24 pm
Actually, the problems aren't over yet. I can't get it to boot still, keeps saying cannot find /dev/tty0 (which doesn't even exist in the damn rootfs image for god's sakes!)
Edit: is it possible it's a problem with the kernel? I'm using the latest one from this:
http://tiplanet.org/nspire-linux-builds/kernel.html (http://tiplanet.org/nspire-linux-builds/kernel.html)
And my ROOTFS is this:
http://tiplanet.org/nspire-linux-builds/xconfig-latest.tar.xz (http://tiplanet.org/nspire-linux-builds/xconfig-latest.tar.xz)
I hope that's enough information for someone to help me out with?

Double edit:
(http://i.imgur.com/rcKJsf3.png)


Sorunome edit: Resized Image
Title: Re: nspire Linux Questions
Post by: Legimet on September 07, 2014, 03:39:06 pm
@ivoah: That wifi dongle will work without any out-of-kernel modules. It's supported by rt2x00, included in the kernel. (specifically rt2800usb)
Of course you'll have to compile it for the same kernel that you're using on your Nspire.
Title: Re: nspire Linux Questions
Post by: Ivoah on September 08, 2014, 10:28:03 pm
I wrote a tutorial on how to install Debian on the calculator: http://wp.me/p4zkUM-1j
Please leave comments with any suggestions or things I might have missed.
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on September 18, 2014, 11:58:03 pm
Interesting, but you should probably make a new topic about this tutorial since it will most likely get lost in this big topic otherwise if many people ask non-Debian-related help. It will get more visibility in the process.
Title: Re: nspire Linux Questions
Post by: tonzaysi7 on September 29, 2014, 04:29:05 pm
Can you link me a kernel which has a working usb rootfs support and is compatible with linuxloader2 (new devicetree, dtb file)?
I just can't get it use the usb as rootfs
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 29, 2014, 04:31:23 pm
The kernel with devicetree support doesn't support USB root yet.
The latest "old" kernel from tiplanet.org/nspire-linux-builds should work.
Title: Re: nspire Linux Questions
Post by: DJ Omnimaga on September 30, 2014, 11:46:13 am
Question: I know it's not related to getting Linux to work, but is Linux on the Nspire a project that is still being developed by other people, seeing as Tangrs is no longer around? I was wondering because in such case it should probably get its own sub-forum.
Title: Re: nspire Linux Questions
Post by: Vogtinator on September 30, 2014, 12:43:33 pm
Quote
Question: I know it's not related to getting Linux to work, but is Linux on the Nspire a project that is still being developed by other people, seeing as Tangrs is no longer around? I was wondering because in such case it should probably get its own sub-forum.
I'm currently not doing any development on the kernel, but that's currently the case for everything except school and a minimum of fun things :-/
Title: Re: nspire Linux Questions
Post by: Ivoah on November 14, 2014, 10:03:38 am
Would this wifi module work with linux on the Nspire: https://www.adafruit.com/products/814
Title: Re: nspire Linux Questions
Post by: aeTIos on November 14, 2014, 10:06:22 am
I take it you're using Debian, right? Sounds like just installing the proper drivers to me. I'm pretty sure the nspire is fast enough for it, after all there's a native extension that works over wifi.
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 14, 2014, 10:07:37 am
No, it requires USB 2.0 which is a PITA to get working. It's possible with the USB OTG module, but it has its own issues, it only works sometimes.
Title: Re: nspire Linux Questions
Post by: Ivoah on November 14, 2014, 10:36:48 am
Can you point me to a wifi module that would work with the Nspire?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 14, 2014, 01:12:06 pm
AFAIK the Ralink 20XX chipset familiy should work. I know for sure that the 2080L works, that was discussed earlier in this thread.

(1000th post yay :D)
Title: Re: nspire Linux Questions
Post by: Ivoah on November 18, 2014, 12:25:49 pm
How do I change the font? And what is the smallest font? On my raspberry pi I changed the font to a 4x6 one by adding this to the kernel cmdline: "fbcon=font:MINI4x6"
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 18, 2014, 01:14:21 pm
You can select the avaiable fonts when configuring your kernel build.
Title: Re: nspire Linux Questions
Post by: Ivoah on November 18, 2014, 01:27:30 pm
You can select the avaiable fonts when configuring your kernel build.


Oh, I just used the default kernel, how do I configure it?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 18, 2014, 02:11:12 pm
Like here (http://www.omnimaga.org/ti-nspire-projects/calling-all-linux-kernel-developers!/msg377127/?topicseen#msg377127),
but use the kernel source from https://github.com/tangrs/linux, nspire branch.
Title: Re: nspire Linux Questions
Post by: Ivoah on November 18, 2014, 03:07:19 pm
Like here (http://www.omnimaga.org/ti-nspire-projects/calling-all-linux-kernel-developers!/msg377127/?topicseen#msg377127),
but use the kernel source from https://github.com/tangrs/linux (https://github.com/tangrs/linux), nspire branch.
Isn't that the new kernel without USB support?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 18, 2014, 03:08:44 pm
No, the DTB kernel is on the nspire-dt branch.
Title: Re: nspire Linux Questions
Post by: Ivoah on November 18, 2014, 03:09:51 pm
Oh, great! What is the config file that is used for the automated builds?
Title: Re: nspire Linux Questions
Post by: Vogtinator on November 18, 2014, 03:11:05 pm
It's on my github, like mentioned in the post I linked to.
Title: Re: nspire Linux Questions
Post by: Ivoah on November 18, 2014, 03:37:29 pm
Yeah, I just noticed, thanks
Title: Re: nspire Linux Questions
Post by: Ivoah on December 24, 2014, 12:43:54 pm
I have debian and lxde installed on my calc, and startx brings up the GUI, but all the inputs die, I can't move the mouse or switch to the console.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 24, 2014, 12:45:32 pm
I guess your system just overloaded, either CPU or RAM. Did you setup swap?
Title: Re: nspire Linux Questions
Post by: Ivoah on December 24, 2014, 01:24:59 pm
I might have, how would I check? Also, I don't think that is the issue, because it isn't frozen, the screen saver comes on and runs fine.
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 25, 2014, 06:20:42 am
Code: [Select]
cat /proc/swaps
Try to run just xterm with twm in the X session and then start lxpanel and the rest one at a time to find the cause.
If you can't find the cause, it's either lxsession or openbox.
Title: Re: nspire Linux Questions
Post by: floris497 on February 22, 2015, 01:35:33 pm
Hey all, can someone tell me if there are certain usb hub chips that work really good with nspire linux?
my CX has been revived :) and while i have virtually no time next to school i wanted to make a little top mounted module,
witch includes 1 micro-SD card slot and 3 usb ports, and a power inlet, for the hub and if possible to charge the calc.

Is it possible to get the power form the second port on top of the calc?

This thing will probably never exist but i might..
I have to design a pcb for school so i might just trow this in as a learning project.
Title: Re: nspire Linux Questions
Post by: tangrs on February 23, 2015, 08:06:19 pm
i wanted to make a little top mounted module,
witch includes 1 micro-SD card slot and 3 usb ports, and a power inlet, for the hub and if possible to charge the calc.

Sounds very interesting :)

I wonder if you would mind if I stole your idea and have a crack at it myself as well?
Title: Re: nspire Linux Questions
Post by: Ivoah on February 23, 2015, 10:39:27 pm
I thought it'd be cool if someone took one of these: http://www.datamath.org/Graphing/NSpire_CX_WNA.htm and put a tiny USB hub in it with a built in flash drive for linux
Title: Re: nspire Linux Questions
Post by: tangrs on February 25, 2015, 10:59:51 pm
I thought it'd be cool if someone took one of these: http://www.datamath.org/Graphing/NSpire_CX_WNA.htm and put a tiny USB hub in it with a built in flash drive for linux

I think that's what floris497 was suggesting. I'll look into designing one.
Title: Re: nspire Linux Questions
Post by: Celadaris on November 28, 2015, 01:32:34 am
So, i tried to follow Ivoah's blog about how to install debian on a nspire as best as i could, problem is i run into this screen I tried connecting the flash drive with a usb hub, without the usb hub and even disconnecting the flash drive completely (just to see what would happen) I also tried re-doing steps 1 - 9 on his blog post and i keep seeing this screen.

http://imgur.com/vb2cFZH

files on linux folder: http://imgur.com/YYPnAjS

His blog post: http://codinghobbit.no-ip.org/blog/?p=81

I didn't use debian, i used linux mint to work on the flash drive, didn't think it'd make much of a difference
I'm on version 3.1.0.392
This calculator is a normal nspire cx but i installed the cas version into it.
Title: Re: nspire Linux Questions
Post by: Ivoah on December 19, 2015, 02:49:30 pm
So, i tried to follow Ivoah's blog about how to install debian on a nspire as best as i could, problem is i run into this screen I tried connecting the flash drive with a usb hub, without the usb hub and even disconnecting the flash drive completely (just to see what would happen) I also tried re-doing steps 1 - 9 on his blog post and i keep seeing this screen.

http://imgur.com/vb2cFZH

files on linux folder: http://imgur.com/YYPnAjS

His blog post: http://codinghobbit.no-ip.org/blog/?p=81

I didn't use debian, i used linux mint to work on the flash drive, didn't think it'd make much of a difference
I'm on version 3.1.0.392
This calculator is a normal nspire cx but i installed the cas version into it.

Can you post the exact contents of start_usb.ll2.tns file? (It's just a text file, open it in a decent text editor (not notepad))
Title: Re: nspire Linux Questions
Post by: Vogtinator on December 20, 2015, 05:11:54 am
Your linuxloader is too old, it does not know the dtb command.
Title: Re: nspire Linux Questions
Post by: meurer on June 06, 2016, 03:43:49 pm
I've been trying to compile the latest mainline kernel for my Nspire (4.7-rc2) but I have, to be honest, failed miserably so far in getting the correct configurations. Would anyone have a .config file for building a working kernel for the CX CAS? Using the older kernel I managed to get OpenBox running and other cool things, but  I couldn't get any drivers to load using an ArchLinux ARM rootfs, so none of my 2 USB Wi-Fi modules nor an Apple keyboard I had lying around worked.
Title: Re: nspire Linux Questions
Post by: ivelegacy on September 05, 2016, 05:38:20 pm
mmm, I wonder if it does make sense running linux on a pocket calculator since you don't have the CAS software on linux  :w00t:

why do you want it, guys ?
Title: Re: nspire Linux Questions
Post by: kitten on September 20, 2016, 08:02:25 pm
mmm, I wonder if it does make sense running linux on a pocket calculator since you don't have the CAS software on linux  :w00t:

why do you want it, guys ?

"Science isn't about why. It's about why not!"