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

0 Members and 1 Guest are viewing this topic.

Offline Naruto1310

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #765 on: February 22, 2013, 03:32:38 am »
Yes, I am mounting it that way. I can see the files on the drive, but the programs don't work.

Code: [Select]
# /mnt/usb/usr/bin/nano
/mnt/usb/usr/bin/nano: can't resolve symbol 'stat64'
# /mnt/usb/usr/bin/startx
/mnt/usb/usr/bin/startx: line 202: /usr/bin/mcookie: not found
Couldn't create cookie
« Last Edit: February 22, 2013, 03:33:38 am by Naruto1310 »

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #766 on: February 22, 2013, 09:31:04 am »
Yes that happened to me when I mounted it. What device file did you use?
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #767 on: February 22, 2013, 12:34:33 pm »
You can try to
Code: [Select]
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
mount -t devpts none /mnt/dev/pts
chroot /mnt
startx

Offline Naruto1310

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #768 on: February 22, 2013, 02:56:36 pm »
Yes that happened to me when I mounted it. What device file did you use?
I'm using /dev/sda. (I hope you don't notice that I have no idea what a device file is :))

You can try to
Code: [Select]
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
mount -t devpts none /mnt/dev/pts
chroot /mnt
startx
That seems to mount the drive as read-only filesystem. X does not work, but nano and mplayer do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #769 on: February 22, 2013, 03:11:09 pm »
Quote
I'm using /dev/sda (I hope you don't notice that I have no idea what a device file is :))
(Yes, I'm too lazy to copy your formatting :P)
/dev/sda is correct. (If it's on your calculator. On your PC it should be /dev/sdb or /dev/sdc)

Quote
That seems to mount the drive as read-only filesystem.
My commands don't mount the drive at all, they require it mounted at /mnt.
But why read-only? Could you show us the messages showing up?
What's the output of fsck.ext4 <drive>(if fsck is not on your calc, try it on your pc)?

Offline Naruto1310

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #770 on: February 22, 2013, 03:32:23 pm »
On PC it seems to be read-only too.
Code: [Select]
user@ixtremeM5850b:~/Downloads$ fsck.ext4 /dev/sdh
e2fsck 1.42 (29-Nov-2011)
fsck.ext4: Permission denied while trying to open /dev/sdh
You must have r/w access to the filesystem or be root
user@ixtremeM5850b:~/Downloads$ sudo fsck.ext4 /dev/sdh
e2fsck 1.42 (29-Nov-2011)
Filesystem did not have a UUID; generating one.

/dev/sdh contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdh: 3320/3784 files (0.5% non-contiguous), 70671/83896 blocks
I reformatted it to make sure everything is right, but still the same result.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #771 on: February 22, 2013, 03:43:06 pm »
Quote
/dev/sdh contains a file system with errors, check forced.
It should be r/w mountable by now.

Offline Naruto1310

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #772 on: February 22, 2013, 04:26:59 pm »
Thanks, X is running now too.

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #773 on: February 22, 2013, 07:13:06 pm »
Are you able to boot directly to the flash drive?
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Naruto1310

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 10
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #774 on: February 23, 2013, 10:19:55 am »
Yes! This works now too. Thanks again.

Now to figure out how Bluetooth and tethering works...

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #775 on: February 23, 2013, 11:25:00 pm »
I got debian working!
I used multistrap to get the rootfs, then my Raspberry pi to set it up the rest of the way (like running dpkg)
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #776 on: February 24, 2013, 03:04:19 am »
Good :)

Quote
I used multistrap to get the rootfs, then my Raspberry pi to set it up the rest of the way (like running dpkg)
In fact, it can be even simpler than that: the qemu-user-static Debian package contains everything needed to finish the creation of the rootfs, without delegating the second stage of debootstrap / multistrap to a physical ARM board :)

Code: [Select]
# Make sure we have the appropriate packages.
apt-get install debootstrap multistrap binfmt-support
# This package ought to register the appropriate definitions for binfmt-support
apt-get install qemu-user-static
# Load binfmt support
modprobe binfmt_misc
# Start a debootstrap that will fail when trying to install the packages
mkdir $DEST_DIR
cd $DEST_DIR
debootstrap --verbose --arch=armel sid . http://ftp.fr.debian.org/debian/
# Fix it. ln assumes the programs are on the same partition, use cp instead if they aren't.
ln /usr/bin/qemu-arm-static ./usr/bin/qemu-arm-static
# Start debootstrap again, and while at it, we can add some packages into the mix :)
debootstrap --verbose --arch=armel --include=locales,build-essential sid . http://ftp.fr.debian.org/debian/
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Calling all Linux Kernel developers!
« Reply #777 on: February 24, 2013, 04:19:49 am »
Glad to see more distros working on the Nspire :)

Does this one work on the CX too?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #778 on: February 24, 2013, 04:21:18 am »
Yup, it definitely should work on the CX :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #779 on: February 24, 2013, 04:52:55 am »
Very nice!