Page 1 of 5

How to enter the startX of the linux(for the nspire)?

Unread postPosted: 13 Aug 2014, 05:03
by panyaolin123
archives_voir.php?id=9218&short=1
I found a topic here,but failed to run the linux using the kernel and the rootfs.tar.bz2 in the topic.
How to solve it? And how to enter the startX ?
>-< Sorry for my poor english.
@Vogtinator

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 13 Aug 2014, 07:27
by Lionel Debroux
The root fs was not found, indeed. Did you copy it to an external USB Mass Storage Device, with the appropriate partition layout, the appropriate filesystem type, and is your config file for linuxloader referencing the correct partition on the USB MSD ?

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 13 Aug 2014, 09:26
by panyaolin123
Lionel Debroux wrote:The root fs was not found, indeed. Did you copy it to an external USB Mass Storage Device, with the appropriate partition layout, the appropriate filesystem type, and is your config file for linuxloader referencing the correct partition on the USB MSD ?

But I use the Linux(On the computer) formatting the USB Mass Storage Device.And the USB MSD's format is "ext".
And I unrar the rootf.tar.bz2 ,copy them to the USB MSD under the Linux on the computer.

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 13 Aug 2014, 09:33
by panyaolin123
Lionel Debroux wrote:The root fs was not found, indeed. Did you copy it to an external USB Mass Storage Device, with the appropriate partition layout, the appropriate filesystem type, and is your config file for linuxloader referencing the correct partition on the USB MSD ?

What is the "config file for linuxloader"? Is it needed?
And I only copy all files in the rootfs.tar.bz2( I found here:http://tiplanet.org/forum/archives_voir.php?id=9218&short=1)to the USB MSD ,is this enough?
Also ,I have modified the launch.ll2 in the nspire,and transfer the zImage.tns (in here:http://tiplanet.org/forum/archives_voir.php?id=9218&short=1) to my nspire. Need another files?

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 13 Aug 2014, 09:37
by panyaolin123
Lionel Debroux wrote:The root fs was not found, indeed. Did you copy it to an external USB Mass Storage Device, with the appropriate partition layout, the appropriate filesystem type, and is your config file for linuxloader referencing the correct partition on the USB MSD ?


Could you tell the methods more detail?
If I succeed with your help ,I will write a tutorial,translate it,and release it in the cncalc forum(www.cncalc.org).

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 13 Aug 2014, 14:37
by Vogtinator
In this post I refer to your MSD, USB storage, whatever, as /dev/sda. If you don't replace it with the correct path, you'll lose most of your data, so be careful.
Create a partition layout (MSDOS partitions) like
Code: Select all
/dev/sda1 512MB ext4
/dev/sda2 256MB swap

, the partitions can be larger, of course, download http://tiplanet.org/nspire-linux-builds/xconfig_20130410_1921.ext2.bz2 and http://tiplanet.org/nspire-linux-builds/zImage_expanded_20130211_0728.tns, copy the zImage as "zImage.tns" on your calc, edit the .ll2 file appropriately:
Code: Select all
kernel linux/zImage.tns
cmdline root=/dev/sda1 rootdelay=10
boot

Then execute "bunzip2 xconfig_20130410_1921.ext2.bz2" and "dd if=xconfig_20130410_1921.ext2 of=/dev/sda1", "sync" and it should boot if you plug the MSD onto your calc as soon as you can see the "waiting for root device to appear" message (or similar, you'll recognize). This way you won't have any issues with the filesystem or permissions, as everything is stored in the disk image. If you want to run my old "linucx.zip" image with gnuplot, you just have to "unzip -o -K -X linucx.zip -d <mountpoint>", although that's untested.

Good luck!

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 14 Aug 2014, 01:34
by panyaolin123
Vogtinator wrote:In this post I refer to your MSD, USB storage, whatever, as /dev/sda. If you don't replace it with the correct path, you'll lose most of your data, so be careful.
Create a partition layout (MSDOS partitions) like
Code: Select all
/dev/sda1 512MB ext4
/dev/sda2 256MB swap

, the partitions can be larger, of course, download http://tiplanet.org/nspire-linux-builds/xconfig_20130410_1921.ext2.bz2 and http://tiplanet.org/nspire-linux-builds/zImage_expanded_20130211_0728.tns, copy the zImage as "zImage.tns" on your calc, edit the .ll2 file appropriately:
Code: Select all
kernel linux/zImage.tns
cmdline root=/dev/sda1 rootdelay=10
boot

Then execute "bunzip2 xconfig_20130410_1921.ext2.bz2" and "dd if=xconfig_20130410_1921.ext2 of=/dev/sda1", "sync" and it should boot if you plug the MSD onto your calc as soon as you can see the "waiting for root device to appear" message (or similar, you'll recognize). This way you won't have any issues with the filesystem or permissions, as everything is stored in the disk image. If you want to run my old "linucx.zip" image with gnuplot, you just have to "unzip -o -K -X linucx.zip -d <mountpoint>", although that's untested.

Good luck!

I knew why it failed! In my launch.ll2 ,I write the rootdelay but missed the "="!
now I enter the linux succeesfully,but failed to startx. Why?

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 14 Aug 2014, 01:41
by Vogtinator
Which combination of root and kernel are you currently testing?

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 14 Aug 2014, 02:16
by panyaolin123
Vogtinator wrote:Which combination of root and kernel are you currently testing?

Could you offer me a new zImage and rootfs?(For enter the startx.)

Re: How to enter the startX of the linux(for the nspire)?

Unread postPosted: 14 Aug 2014, 06:23
by panyaolin123
Vogtinator wrote:Which combination of root and kernel are you currently testing?

All from here:http://tiplanet.org/forum/archives_voir.php?id=9218&short=1
It is your topic.

Could you offer me a new zImage and rootfs?(For enter the startx.) ?

By the way,does the linux support the touchpad(in the startx) ?

Lionel Debroux wrote:The root fs was not found, indeed. Did you copy it to an external USB Mass Storage Device, with the appropriate partition layout, the appropriate filesystem type, and is your config file for linuxloader referencing the correct partition on the USB MSD ?

Now I enter the “startx” command,the linux stuck in this place.