Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started 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
-
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 "
-
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
-
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,
-
still not found.... T.T
Did you do what was said before your post first?
-
waiting 10 sec before mounting root device..
Ramdisk: ext2 filesystem found at block 0
Ramdisk: Loading 2061Kib (1disk) into ram disk.. done
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?
-
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.
-
errr if the rootfs its in the ram, i cant open links? theres no directory to it if its in the ram?
-
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.
-
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,
-
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.
-
right away bro ur the best!! XD
can you post your kernel too??
thanks
Regards,
-
I posted it here (http://ourl.ca/17131/323635)
-
Vogtinator, i had a problem look
-
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.
-
Try using tar -xvjf
-
root@noobnonin-GN670AA-ABM-SG3110LA:~# 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
root@noobnonin-GN670AA-ABM-SG3110LA:~# =(
sup tangrs xd
-
Maybe a corrupted download?
-
Yeah, try downloading it again. On my server and laptop it works fine.
-
Maybe split all those help posts into a separate topic and keep this topic for updates?
And woot :D
-
Hey Omni,
I tried using mkfs.ext /dev/sda, but once I partitioned, I couldn't mount the full disk. Any ideas?
-
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!
-
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
-
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.
-
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?
-
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`)
-
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,
-
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)
-
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
-
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,
-
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
-
ok, tks bro
oks this is what i have when i run bunzip
noobnonin@noobnonin-GN670AA-ABM-SG3110LA:~$ su -
Password:
root@noobnonin-GN670AA-ABM-SG3110LA:~# 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.
root@noobnonin-GN670AA-ABM-SG3110LA:~#
-
bunzip2: No such file or directory
Please read your error messages..
-
yep, i dled it from box, ur last post
noobnonin@noobnonin-GN670AA-ABM-SG3110LA:~$ su -
Password:
root@noobnonin-GN670AA-ABM-SG3110LA:~# file rootfs.tar.bz2
rootfs.tar.bz2: empty
root@noobnonin-GN670AA-ABM-SG3110LA:~#
root@noobnonin-GN670AA-ABM-SG3110LA:~# start rootfs.tar.bz2
start: Unknown job: rootfs.tar.bz2
root@noobnonin-GN670AA-ABM-SG3110LA:~#
-
rootfs.tar.bz2: empty
DL it again, with wget and post your output.
-
What information should I get from that picture?
As I wrote, please download it using wget and post the output!
-
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
-
Wget is a program that downloads files via ftp, http and many other protocols.
`wget <url>`
ive never used linux before sorry... xd
This explains why you are using Ubuntu. With Unity.
-
Admin, please split this into a separate topic. This topic gets hijacked too much and it gets pretty annoying. x.x
-
Yeah, that would really be better.
-
Admin, please split this into a separate topic. This topic gets hijacked too much and it gets pretty annoying. x.x
Done
-
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?)
-
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.
-
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
-
Agressive
But I wrote "please" :P
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
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 $)
EDIT: Wow, SMF QUOTE bbcodes are total garbage lol
Yeah, every second time my whole post is a quotation because of a missing '/'..
-
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 >.<
-
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
-
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
-
You accidentally double posted.
-
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
-
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?
-
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.
-
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
-
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.
-
yeah maybe we can make it levitate too! o.O
Xd sorry im just too happy because it ran xd
-
I wonder if Nspire Linux USB would run on USB1.1 since I know some people still has that?
-
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" :)
-
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.
-
Seems like someone had the same idea :D
http://ourl.ca/17522
-
i need to know how to configure the network with a usb wi fi dongle pls :D
thanks...
-
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/
-
tangrs provided a bit of information about that topic alongside his video ;)
dhclient / dhcpcd / whatever DHCP client, wpa_supplicant, and stuff like that.
-
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
-
Well replace wlan0 with whatever device name linux is using for your usb dongle. type ipconfig and see what's there.
-
Sorry, ifconfig.
-
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)
-
where can i find the boot-loader or something, is there a clean list of things you need that gets updated?
-
noobnonin: try iwconfig. What is the output for that?
-
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
-
noobnonin: Then you didn't get the right drivers for your usb dongle compile into the kernel.
Also, noobnonin. Please don't double post.
-
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
-
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)
-
vogtinator, i need to have this driver " 1737:077 " in my kernel, how can i do it?
Regards...
-
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].
-
Hm, I googled "Ralink RT2080L linux" and it seems to need firmware..
I hate it, as these things tend to get quite annoying >:(
-
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?
-
Nope: just like TI's OS (which Linux completely replaces in RAM), the best way to reboot the OS is to reboot the calculator :)
-
how bout if i get another wifi dongle? how do i install drivers??
-
No, try it with CONFIG_RT2X00.
http://ourl.ca/17131/325155 (http://ourl.ca/17131/325155)
-
is that for the kernel?
-
Yeah, you have to build a kernel with your driver integrated.
-
once the kernel is done, do i have to change the rootfs of the usb too? o.o
-
No. You only have to build new programs if you need them.
-
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
-
As Vogtinator (IIRC) mentioned somewhere else, that chip requires firmware... so you'll have to include that into your rootfs somehow.
-
what if i have a wifidongle that doesnt requires firmware, does that exists?? o.O
what i mean is, does wifidongles without firmware exists??
-
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.
-
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,
-
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)
-
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,
-
No. Mount it.
-
" mount linux-firmware/rt2870.bin /dev/sdc/lib/firmware/rt2870.bin "like this?
could you maybe write the command? :D
Regards,
-
cp instead of mount would certainly be better ;)
-
No.. The USB stick.
mount /dev/sdc /media
mkdir /media/lib/firmware
cp /lib/firmware/rt2870.bin /media/lib/firmware/rt2870.bin
-
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,
-
Yes, everything looks fine.
But why did you clone linux-firmware?
-
idk XD, im noob XD
now how can i detect the wifinets? where do they appear or with what command?
-
http://ourl.ca/17509/325168 (http://ourl.ca/17509/325168)
-
omg another problem T.T
when i put "iwlist wlan0 scan" then it says: "interface doesnt support scanning"
regards,
-
Are you root?
Edit2: Try to use iwconfig wlan0 up before scanning.
If that doesn't work, run iwconfig and post output.
-
yep, im running commands in the ti nspire
-
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!
-
it says im root :D
-
Run iwconfig wlan0 up.
If it doesn't work, post output of iwconfig.
-
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
-
Run dmesg and post the parts which seem suspicious to you.
-
everything seems fine to me....
the part where it says wlan0 no wireless extensions
should something appear there???
Regards,
-
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,
-
Yes, something like "not associated".
Then post the entire output of "dmesg | grep wlan"
-
wait, having problems now, seems like my usb dongle heats and sucks all the power from my batteries XD
-
From which batteries?
POWER IT EXTERNALLY OR YOU WILL KILL YOUR CALC!!!!1oneleven
Edit: You double-posted.
-
XDD calm down bro, i made an externally power circuit chill XDD
-
Your circuit is crap then.
-
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
root@noobnonin-GN670AA-ABM-SG3110LA:~# 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
-
Wow, triple post, new highscore :-P
As I said, the only thing you could do is posting the output of "dmesg | grep wlan".
-
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
-
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".
-
ok i entered "dmesg | grep wlan
it says: usbcore:registered new interface driver rndis_wlan
something wrong with that?? o.O
sup jim :3
-
Hm, there should be more..
"cat /var/log/messages | grep wlan" maybe?
Or try "firmware" instead of "wlan"
-
"cat /var/log/messages | firmware"
"cat /var/log/messages | grep firmware"
"demsg | grep firmware"
"dmesg | grep firmware"
-
try ifup wlan0 and iwlist wlan0 scan before
-
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,
-
Run iwconfig.
It's very strage ifconfig wlan0 up works but ifup wlan0 doesn't.
-
if i run iwconfig
lo no wireless extensions
tun 10 no wireless extensions
wlan0 no wireless extensions
-
After running ifconfig wlan0 up?
-
yes
-
But didn't that work before?
-
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...
-
You might need to recompile your kernel.
See http://www.linuxquestions.org/questions/linux-wireless-networking-41/wlan0-no-wireless-extension-907830/
-
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 >.<
-
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)
-
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....
-
If we can't get any error messages, we can only guess what's the cause.
-
i posted all the errors XD
this is the final error http://ourl.ca/17509;msg=271586
good day fabian :D
-
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.
-
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
-
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)
-
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?
-
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)
-
i tried ur kernel and..... its having problems, it doesnt boots the rootfs
-
What fails?
-
kernel panic, it doesnt boots my usb
it boots my initrd
-
Wow..
Wait a moment, I gonna test it.
Edit: It works flawlessly.
-
do you have initird on ur bootscript?
-
Bootscript + USB-Stick (partitioned)
-
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"
-
vogt, can u post whats the scrip of ur bootscript?
ohhh ok ok my usb is not partitioned, so the bootscript loads /dev/sda
-
kernel linux/zImage.tns
cmdline root=/dev/sda1 earlyprintk debug console=tty0 rootdelay=10
boot
-
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,
-
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)
-
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
-
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
auto wlan0
iface wlan0 inet dhcp
into /etc/network/interfaces.
-
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
-
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
-
You have an ip, pinging should work.
But why "noobnonin banned"?
-
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
-
If you read my post, you should insert it into /etc/network/interfaces, not execute it..
-
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,
-
May be, but you can also use nano if you don't want to fiddle with vim.
-
errr.... in noob language?
-
Use nano instead of vim.
-
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
-
Think.
-
*.* :w00t: :banghead: ??? ??? ??? ??? ??? :w00t: :w00t: :w00t: :w00t: :w00t: :w00t: :w00t:
-
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.
-
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 don't know.
He emaild me yesterday, WLAN works for him now.
-
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)
-
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)
-
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.
-
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.
-
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
-
Does anybody know how to set this up on the Touchpad now that it's working on classics?
-
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.
-
But linuxloader2 is working?
-
The latest version from github should work.
-
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
-
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.
-
Where can I find one ? I didn't find on google.
I think you can use mini-b to female-a too.
-
AFAIK, nope, because on well-behaved controllers, mini-B does not trigger the appropriate behaviour (host mode). Only mini-A does.
-
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.
-
You need an _externally_ powered hub ;)
-
You need an _externally_ powered hub ;)
I don't understand. ???
All I want is where can I find this adaptator.
-
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,
-
Midori works, but very slow (3 min to render google, 5 secs to render keypresses)
-
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.
-
Would something like tinycore linux be do-able/useful? http://distro.ibiblio.org/tinycorelinux/welcome.html
-
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).
-
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).
-
errrr,,, ive seen tinyweb, and i think its faster.... xd
Regards,
-
Link? I can only find a webserver for windows called tinyweb.
-
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.
-
Oh i remember those times. At least you didn't have to worry about the looks of your website :P
-
Link? I can only find a webserver for windows called tinyweb.
http://ourl.ca/17033/316780
-
Yeah, no one stayed on them long enough for the GIFs to load.
-
are there any other web browsers? that are fast and have images??
Regards,
-
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,
-
I can't get my keyboard working with Linucx, is an apple keyboard supported?
Which kernel do you use?
-
I can't get my keyboard working with Linucx, is an apple keyboard supported?
Which kernel do you use?
I use your kernel
-
Ok, currently there's no support for Apple USB Keyboards.
I'll make a new config and compile the kernel.
-
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
-
http://tiplanet.org/nspire-linux-builds/zImage_expanded_20121216_1521.tns (http://tiplanet.org/nspire-linux-builds/zImage_expanded_20121216_1521.tns)
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.
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.
-
hm, I can't boot that kernel :S
they stop at this point.
-
Strange, did you type something or did the y's appear themselves?
-
Strange, did you type something or did the y's appear themselves?
they always appear, sins the first kernel I used.
-
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.
-
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
-
Both cmdlines work for me.
-
is this kernel compatible with a non CAS?
-
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) :-(
-
Could someone compile a Touchpad zImage and initrd for me? I can't figure out how
-
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)
-
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)
-
Oh, okay. Thanks!
-
i'm a bit confused are there different initrd.tns files??
-
Can be, but everyone works.
-
is there any information i can provide you to understand whats going wrong with my calc?
-
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.
-
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 :)
-
Great! I was having that problem once, too..
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 ;)
-
good day all :D
how is it going with graphics browser???
PD: i love vogtinator :3
-
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:
kernel linux/zImage.tns
cmdline root=/dev/ram
boot
However, linux always freeze here:
[<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!
-
You need to specify an initrd to load, e.g.:
kernel linux/zImage.tns
initrd linux/initrd.tns
cmdline root=/dev/ram
boot
-
I thought this was optional.
Can you give me a link to a minimal initrd please?
-
Yeah, here's one build (not tested):
http://tiplanet.org/nspire-linux-builds/initrd.tns (http://tiplanet.org/nspire-linux-builds/initrd.tns)
-
Thanks for the link. However, linux still freezes at the same point.
-
Ok..
Then try the kernel with defconfig and use the initrd provided by tangrs in the other thread.
-
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^^).
-
http://ourl.ca/17131;msg=266194 (http://ourl.ca/17131;msg=266194)
He referred to it as ramdisk..
-
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.
-
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
-
Ok, you just have to edit your boot script.
-
Now working, thanks!
cmdline root=/dev/ram console=ttyAMA0
-
I simply use
cmdline root=/dev/ram
-
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^^).
-
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?
-
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).
-
With console=tty0 maybe?
ttyAMA0 is the serial port..
-
It gives me the same result as "cmdline root=/dev/ram".
-
In case it helps, the last message before freezing is:
[<c0254df0>] (kernel_init+0x0/0x2a8) from <c00094f0>] (ret_from_fork+0x14/0x24)
-
That's only the usual message if linux can't execute /sbin/init.
-
My friend doesn't want to downgrade his OS to 3.1 :-(
-
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.
-
//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.
-
Could you try and find out where it tries to open /dev/ttyAMA0?
-
I'd do it, but have no idea how to do this.
-
Sys-Request should be enabled in expanded config.
Type SysRq + 0 to get rid of warnings.
-
"SysRq: not found" :( (with expanded config).
-
SysRq is a key on your keyboard :-P (AltGr + Print normally)
-
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?)
-
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.
-
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.
-
I don't think it's mapped to any key at all :-/
-
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.
-
Is it possible that some sticks have a buggy firmware and create lots of "XactErr" errors?
Try it on your PC
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.
-
No errors appear in dmesg log on my pc...
But a line 'quiet_error: 36 callbacks suppressed'
-
No errors appear in dmesg log on my pc...
Maybe some issues with USB 1.1.
-
vogtinator, is midori fast? is it good or is it slow?, can we use it?
Regards,
-
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.
-
how can I start blackbox? It doesn't come with a replace option and can't start without x.
-
In xterm:
killall twm
blackbox&
-
//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
-
Thanks for your anwser.
Here is my script right now:
kernel linux/zImage.tns
initrd linux/initrd.tns
cmdline root=/dev/ram console=tty0
boot
I still get the error.
-
Thanks for your anwser.
Here is my script right now:
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
-
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 .
-
@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...
-
On a linux pc, run the following:
mount -t ext2 -o loop initrd.tns /mnt
cd /mnt/etc
vi inittab
cd /
umount /mnt
-
I got linux installed... now what :P
Is there a place where I can find some cross-compiled programs?
-
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).
-
How do I compile that?
-
can someone tell me how to connect an usb drive to linux on my nspire cx?
-
On a linux pc, run the following:
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?
-
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.
-
Try to use
cmdline root=/dev/ram init=/bin/bash
now you should be able to run commands without being thrown out.
-
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
cmdline root=/dev/ram init=/bin/bash
now 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
-
Which kernel? Try some more versions
http://tiplanet.org/nspire-linux-builds/kernel.html (http://tiplanet.org/nspire-linux-builds/kernel.html)
-
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
-
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...."
-
Oh, try /bin/sh then
-
Not really better^^
I get:
"/bin/sh : can't access tty: job control turned off"
-
That's just a warning, no prob at all.
Do you get a shell?
If not, try console=tty0
-
I did get a shell (already had console=tty0 ), but with the crazy keyboard, meaning I could only type a few characters like * or +.
-
USB Keyboard?
I'll try the current kernel on my cx cas, maybe I get the same error
-
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.
-
Would this run on an Nspire running Linux?
http://www.onlive.com/
O.O
-
Considering there's not even an x86 linux port of it, I think that would be hard DJ :P
-
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.
-
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
-
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)
-
The dongle has an ethernet port itself, also a good hub would be no problem at all
-
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?
-
Yes :-)
You only need an initrd if you don't use an usb stick.
-
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.
-
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.
-
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
-
/dev/sdb1?
Then you have to use root=/dev/sda1 in your script.
Per default it uses /dev/sda, not the first partition.
-
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)
-
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).
-
I also use a CX CAS. There might be something wrong with the build from there.
So you're fixing it? Excellent! ;D
-
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"?
So you're fixing it? Excellent!
Build is ready, but I don't think it fixes anything (besides the flashing white, maybe)
-
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?
-
The latest build just causes my calculator to hard reboot after a run my script...
O.o That shouldn't be..
Do I need a new ndless or something?
Yep, I'm using the latest version.
Do you have the latest linuxloader?
-
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
-
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.
-
That's a bug in nTxt's version checker, im pretty sure, i get the same thing.
-
Nope, it just crashed.
With the last ndless versions it works perfectly.
-
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
-
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.
-
Mine freezes on reboot until I hard reset it. Is that what NAND corruption is? Or did I just completely brick your calc? :o
-
Nope, you didn't xD Sometimes I only need to reboot, but most times I have to run NAND tests in diag mode..
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..
-
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.
-
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..
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?
-
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.
-
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.
-
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
(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
-
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.
-
Crap, now my calculator is stuck on a clock icon on the gray background on startup. How do I fix this?
-
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.
-
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
-
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.
-
Whew, it boots again ;D
-
Does X work now and could you move the cursor with the mouse?
I could only test it on my device.
-
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!
-
I tested your image and it works perfectly
Except it makes your calculator refuse to boot in 80% of all cases xD
-
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.
-
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.
-
Is debian compatible with the x windows patch? Or is your patch for buildroot based linux?
-
Nope, the patch is for the kernel :D
-
Ah, so i can just use your kernel with whatever distro/buildroot config I want, neat.
-
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...
-
Simple example:
int main(int argc, char** argv)
{
printf("Hello World");
return 0;
}
gcc main.c -o hw
needed 2 minutes (not overclocked).
-
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.
-
I guess I'll just put lua/python or something lighter on there
Buildroot even has php and perl :3
-
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...
-
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.
-
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)
-
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 ???
-
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/
-
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?
-
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?
-
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).
-
I used the extended kernel and it works. Thanks tangrs and gtugablue!
-
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.
-
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.
-
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
-
I removed the logo in expandedconfig, if you can see it, you're using the wrong version.
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.
-
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?
-
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.
-
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?
-
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
-
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 ;)
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.
-
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
...
-
When did you download it? I thought I resolved this issue..
Also, your read-only '/' would be interesting, too.
-
probably a mistype
I think it is the most recent one, but I could be wrong. I'll try again when I get home.
-
Ok, I'll try to build a new image. Should be ready in about an hour.
-
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.
-
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.
-
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 ::)
-
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.
-
Bump
-
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.
-
Link to an installing tutorial. I just need that.
-
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
-
From what I've read I understand that Linux can be started from within TI OS.
Yup :)
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.
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.
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).
-
Link to an installing tutorial. I just need that.
Just follow the readme instructions and you should be fine I think.
-
Lionel, thanks for your prompt answers. You say
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
-
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.
-
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.
-
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!!!!!!!!!!
-
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)
-
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
-
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.
-
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
-
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)
-
ahh i c but it says kernel not loaded on calc LOLOOL
-
LOLOLOLLLLOOO Then you did something wrong LOLLLLLOOOOOOOL
-
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?
-
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.
-
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
-
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)
-
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. :)
-
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. :)
-
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? :)
-
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 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).
-
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 :-)
-
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
-
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...
-
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 :-/
-
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 ?
-
initrd.tns is just a symlink to busyboxconfig-latest.ext2.bz2 :D
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.
-
what file format do i have to use? ext4/3 ?
-
For what?
-
for the usb drive to put the rootfs.tar.bz2 file on.
-
On your usb drive?
You can use every ext version.
-
hm i cant get it to work.. it won't mount
-
Then you did something wrong.
If you post your steps and the error message, I can help you better ;-)
-
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?
-
Boot normal with initrd and execute "cat /proc/partitions"
-
this is what i get on the screen
-
So your drive is connected and detected correcly. Can you do "mount /dev/sda /mnt"?
-
hm, worked one time.. next time no such device or address
-
If it works and the files appear in /mnt it should boot fine, too.
-
hm, i will try that
-
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
-
That's a success.
BTW: Doublepost :P
-
hm, i dont see the double post.
but why would it not boot?
-
It boots, that isn't an error message. If it still doesn't boot, describe what's not working
Reply #404 and #403
-
?? they look different over here ??
-
They don't have to be different to be a doublepost. Modify the first one instead of posting ;-)
-
(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)
-
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?
-
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.
-
cx_usb_otg is very slow. I recommend you to remove it.
Maybe it resolves your problem?
it won't mount when i boot it with the script.
Could you show us your script and your error message?
-
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
-
You have to remove the initrd line..
-
If I remove it, it rarely works... and yeah it doesn't boot the usb
-
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?
-
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..
-
You have to remove the initrd line..
that gives me a panic
-
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.
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"?
-
-sh stat: not found
-
ok, then "ls -l /mnt/bin/sh"
-
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
-
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...
-
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
-
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 :-/
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
lrwxrwxrwx 1 root root 4 jan 12 2013 /mnt/bin/sh -> bash
That's exactly how it's supposed to be, no idea.
-
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?
-
if it works you give up?
If mounting works but booting doesn't I give up, yes.
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)
-
i can mount it manually but the stat command in not included..
-
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 :(
-
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?
-
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 :-)
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).
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?
-
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...
-
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 :-/
-
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]
-
"./sbin.."? It should be just "/sbin". Are you using the latest rootfs from yesterday? There may be some bugs in it :-/
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 :-/
Oh, and ^+Alt+Del doesn't reboot...
Really? Works well for me: ctrl + var + calulator
-
:) 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 :)
-
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!
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 :-/
-
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.
-
My hub should be here any second.
Good luck!
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 ;)
-
Vog, you're right on. Not that hard, see? :)
Well I'll use Linux as I port Genesis Plus to the Nspire.. :)
-
is there already some basic usb audio drive available?
-
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.
-
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
-
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.
-
i never compiled a kernel before, and my usb device needs no drivers, so i think it needs standard drivers?
-
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!
-
Probably :) (and then i get stuck on forums saying "Google it" LOL)
-
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 :)
-
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
-
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.
Would it be usable ?
Yes, I think so.
Xpdf (http://www.foolabs.com/xpdf/download.html) seems to be the right application to port.
-
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 ...
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 ...
-
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.
-
But sadly theres no real lightweight alternative (couldn't find some by quick search) :-/
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 ;)
-
:) This was one of the main reasons I wanted Linux
-
Sorry in advance for being an absolute noob....
how do you run X?
-
Usually `startx`, if the tool exists.
-
Usually `startx`, if the tool exists.
apparently it doesn't :(
-
then, you must have the wrong rootfs. try an xconfig from the builds site.
-
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 ?
-
No, it isn't.
If you use OTG, you can use both, auto detected, if not, which works depends on the nspire os.
-
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 ...
-
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
-
@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") :
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 ...
-
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
-
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.
-
Link to schematics on your little USB port hack?
-
(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.
-
oh thats awesome
-
Thank you for the explanation fortytwo.
I now quite understand how all this mess works :p
-
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 :
dpkg : error : unable to access dpkg status area : No such file or directory
Is this behaviour expected ?
-
This dpkg message indicates that there's no /var/lib/dpkg/status file, which is not expected.
-
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 ...
-
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
-
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) :
# 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 !
-
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.
-
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
-
1) First, boot the initrd image and see if the pen drive is detected.
2) Use the xconfig image with
kernel Linux/zImage.tns
cmdline root=/dev/sda1 rootdelay=10 cx_usb_otg
boot
-
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.
-
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:
mount /dev/sda<whatever> /media
mount -t devtmpfs none /media/dev
mount --bind /proc /media/proc
mount --bind /sys /media /sys
chroot /media[/quote]
-
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
-
mount --help | less ?
-
Tried.
-
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.
-
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
-
It (kind of) is. You just have to change "/" to the mountpoint of the drive, which chroot does.
-
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. :)
-
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
-
By default the kernel tries to execute /sbin/init.
Does it exist and have the right permissions?
-
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
-
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?
-
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
-
if you use cat or echo to the device it ail reboot as far as i know
What device reboots?
BTW: Compiling now
-
the Arduino wil reboot with every new contact that is made with it
And Thanks :)
-
Build finished, download here (http://tiplanet.org/nspire-linux-builds/initrd.tns).
Edit: Untested
-
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
-
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...)
-
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.
-
This should not be reported publicly, to begin with ;)
-
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?
-
Scroll down to "How can I help" on this page (http://ndlessly.wordpress.com/2013/09/18/on-the-way-to-ndless-3-2/).
-
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)
-
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.
-
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.
-
Another question:
If i put an xconfig rootfs on a flash drive, can i use the busybox initrd to boot it?
-
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.
-
Is there a place i could find/build a suitable initrd for xconfig?
-
You can't. X11 doesn't fit into RAM three times (compressed with xz & uncompressed in ext4 filesystem & loaded as executable).
-
But is there an initrd that will load Xconfig from a flash drive?
-
No, you can boot from your flash drive directly.
-
If i did that, i assume the LinuxLoader script would look like this:
kernel linux/kernel.tns
cmdline root=/dev/sda
boot
Is that right?
-
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.
-
Is the older kernel on this page?: http://tiplanet.org/nspire-linux-builds/
-
Oh, one last question, how do i upvote/add reputation (to you)?
-
Is the older kernel on this page?: http://tiplanet.org/nspire-linux-builds/
Yup, it's the "older kernel" :P
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.
-
Would it be possible to make a debian rootfs for linux on the nspire using debootstrap?
-
IIRC somebody did that already.
-
is it as simple as using debootstrap for armel?
-
Yes, it should be. Just be sure it's for ARMv5 (ARM926ej-s) and not above.
-
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).
-
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
-
Well, how do you load the module? Did you compile it?
-
I didn't compile it, I used apt-get, and it is supposed to be automatically loaded...
-
Debian's kernel modules aren't compatible. It's a different kernel version, so you'll need to compile it yourself.
-
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?
-
@Vogtinator Oh, that makes sense... I have gcc and make on my calc, how would I compile and install the module?
-
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.
@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.
-
All of them?
-
.bz2 is bzip2 compressed and .xz XZ-compressed.
-
yeah but I started with only one file and ended up with 3...
Edit: I'm an idiot. tar xf...
-
here is the source for the driver: http://www.mediatek.com/AmazonS3/Downloads/linux/DPO_RT5572_LinuxSTA_2.6.1.3_20121022.tar.bz2
-
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?
-
Okay I'm now getting a bunch of "operation not permitted" errors despite the fact that I'm root and using Sudo
-
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...
-
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
-
Make sure the flash drive is formatted as ext4
-
Yes. Also be sure you target the correct folder, otherwise you'll fuck your whole system up.
I accidentially untard it onto "/", requring reinstallation.
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.
-
LOL that must have SUCKED!
How do you specify a directory?
Also, you do you format a drive in debian?
-
@Vogtinator why won't it work?
-
LOL that must have SUCKED!
How do you specify a directory?
-C destdir
Also, you do you format a drive in debian?
mkfs.ext4 /dev/sdXY
@Vogtinator why won't it work?
It says "2.6" as kernel version - the nspire version is at 3.14 I think.
-
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?
-
That rule applies only to userspace. Kernelspace changes really fast.
-
Darn :( do you know what wifi dongles would work with linux on the nspire?
-
Those which are supported by the kernel directly, without any extra modules.
Search through the kernel's config options, choose and compile.
-
Search through the kernel's config options, choose and compile.
What do you mean?
-
LOL that must have SUCKED!
How do you specify a directory?
-C destdir
Also, you do you format a drive in debian?
mkfs.ext4 /dev/sdXY
@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
-
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
-
@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.
-
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.
-
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.
-
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
-
The kernel with devicetree support doesn't support USB root yet.
The latest "old" kernel from tiplanet.org/nspire-linux-builds should work.
-
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.
-
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 :-/
-
Would this wifi module work with linux on the Nspire: https://www.adafruit.com/products/814
-
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.
-
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.
-
Can you point me to a wifi module that would work with the Nspire?
-
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)
-
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"
-
You can select the avaiable fonts when configuring your kernel build.
-
You can select the avaiable fonts when configuring your kernel build.
Oh, I just used the default kernel, how do I configure it?
-
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.
-
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?
-
No, the DTB kernel is on the nspire-dt branch.
-
Oh, great! What is the config file that is used for the automated builds?
-
It's on my github, like mentioned in the post I linked to.
-
Yeah, I just noticed, thanks
-
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.
-
I guess your system just overloaded, either CPU or RAM. Did you setup swap?
-
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.
-
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.
-
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.
-
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?
-
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 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.
-
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.
-
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))
-
Your linuxloader is too old, it does not know the dtb command.
-
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.
-
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 ?
-
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!"