Letux-OS


I don't want to use an sd card because I swap them often.

It also makes no sense to take up an SD slot for an OS when there is a NAND, who's sole purpose is the OS.

Kthx
 
Could not makesd. Got the following errors:

ryohazuki:/home/ryohazuki/Downloads# DEV=/dev/mmcblk1 ./makesd openpandora
1: ext4 25% b:/+http://download.goldelico.com/letux-u-boot/OpenPandora/latest/* k:/boot+http://download.goldelico.com/letux-kernel/latest/uImage dt:/boot+http://download.goldelico.com/letux-kernel/latest/device-trees.tbz r:http://download.goldelico.com/letux-debian-rootfs/latest-lxde.tbz m:http://download.goldelico.com/letux-kernel/latest/modules.tgz c:http://download.goldelico.com/letux-debian-rootfs/latest-config.tgz
2: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
3: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
4: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
umount: /boot: not mounted
umount: /dev/mmcblk1: not mounted
umount: /dev/mmcblk1: not mounted
umount: /dev/mmcblk1p1: not mounted
total 0
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.227325 s, 4.6 MB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.000152588 s, 26.2 kB/s
Checking that no-one is using this disk right now ...
OK
Disk /dev/mmcblk1 doesn't contain a valid partition table
mke2fs 1.41.9 (22-Aug-2009)
Could not stat /dev/mmcblk1p1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
mount: special device /dev/mmcblk1p1 does not exist
 
Are you sure that /dev/mmcblk exists? And di you have fdisk / sfdisk installed?
 
I did this on the Pandora itself via Zazxon as I don't have access to a full desktop ar the moment.
Ah, then probably sfdisk does not exist in Zaxxon.
But thanks for trying - the makesd script should at least emit an error message...
 
Then insert SD card into let slot, press right shoulder button and power on. Choose Boot from SD:1 by the up/down navigation keys and finally press B from ABXY.

BTW: Letux-OS is not a commercial project. It is FLOSS and everyone can contribute.

Ah right, the project page says it's a mixed open source and commercial strategy and I must have misread that. For our purposes it's all open source then.

I tried to run makesd on my archlinux server (which helpfully has a free sd reader built in), and it didn't generate a suitable filesystem, although it did modify the card. The end of STDOUT looks like this:

Code:
1024+0 records in
1024+0 records out                                                    
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.222692 s, 4.7 MB/s          
4+0 records in                     
4+0 records out                                                       
4 bytes copied, 0.00198061 s, 2.0 kB/s                                
sfdisk: --Linux option is unnecessary and deprecated                  
mke2fs 1.43.6 (29-Aug-2017)        
The file /dev/sdc1 does not exist and no size was specified.          
mount: /media/P1: special device /dev/sdc1 does not exist.

Indeed, my system hasn't picked up a /dev/sdc1, although it still detects an inserted card and fdisk creating a partition works, so it hasn't killed the card (which I've managed to do before now with injudicious use of fdisk).

fdisk reckons there's not even a partition table on the card by the way, so it's definitely done something (written 1.002MB of data to the card it seems).

I say I need an autoboot.txt because the pandora's uboot doesn't show the menu on tv-out, so I can't see the menu on my tv-out only unit. But if your distribution contains a boot.txt it's just a matter of renaming that to autoboot.txt, so I was hoping to have a look at the distribution at least before replying, but it seems I can't even do that ;)
 
Hi,
here is how my log looks like (running on OMAP5EVM with Debian 8.9):
Code:
root@letux:~/letux-makesd# DEV=/dev/sdb ./makesd openpandora
1: ext4 25% b:/+http://download.goldelico.com/letux-u-boot/OpenPandora/latest/* k:/boot+http://download.goldelico.com/letux-kernel/latest/uImage dt:/boot+http://download.goldelico.com/letux-kernel/latest/device-trees.tbz r:http://download.goldelico.com/letux-debian-rootfs/latest-lxde.tbz m:http://download.goldelico.com/letux-kernel/latest/modules.tgz c:http://download.goldelico.com/letux-debian-rootfs/latest-config.tgz
2: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
3: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
4: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
umount: /boot: not mounted
umount: /boot: not mounted
umount: /dev/sdb: not mounted
umount: /dev/sdb2: not mounted
umount: /dev/sdb: not mounted
umount: /dev/sdb1: not mounted
umount: /dev/sdb2: not mounted
/media/P1:
total 0
/media/P2:
total 0
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.571519 s, 1.8 MB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0775877 s, 0.1 kB/s
sfdisk: Checking that no-one is using this disk right now ...
sfdisk: OK
sfdisk:  /dev/sdb: unrecognized partition table type
sfdisk: No partitions found
sfdisk: Warning: The partition table looks like it was made
  for C/H/S=*/126/10 (instead of 1020/246/62).
For this listing I'll assume that geometry.
sfdisk: Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 1945584 4k blocks and 486720 inodes
Filesystem UUID: 6f852296-29a3-4473-b6f5-6a5567e70b18
^C
"1048576 bytes (1.0 MB) copied" comes from initially wiping out the MBR/partition table.

Then, sfdisk is asked to create a new partition table. My system does it while yours only says something about --Linux.

So it looks as if we have incompatible sfdisk versions...
Mine says:
Code:
sfdisk from util-linux 2.25.2
Another reason of trouble seems to be that some systems do or do not always update the partition table in the kernel. Do you have partprobe installed?
 
I'm on util-linux 2.30.2-1 so perhaps there's some incompatibility looming.

I don't have partprobe installed. When I'm running as root (I was here) fdisk never says it had trouble updating the kernel partition table, but if you run it as sudo sometimes it does.

Edit: My sfdisk no longer spits out C/H/S information, so that might be one sticking point. Not sure if that's enough to make it fall over. Running makesd with --debug looks like a good idea at the moment.

Edit2: Running it with --debug shows it passes that sfdisk step and prints out reasonable stats. I'm not sure it actually modified the card though, cos that one 64GB partition looks like the one I created with fdisk yesterday. I didn't format it then, but it's probably picking up the previous format for a partition starting in the same place.

And it does seem to be picking up CYLINDERS despite the sfdisk docs suggesting it shouldn't. Maybe I need to dig more.

Code:
-- clear boot record --
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.238967 s, 4.4 MB/s
4+0 records in
4+0 records out
4 bytes copied, 0.00300992 s, 1.3 kB/s
-- partitioning --
-- DISK SIZE: 63864569856 bytes --
-- TOTAL SECTORS: 124735488 --
-- CYLINDERS: 7764 --
-- SECTORS PER CYLINDER: 16065 --
P: 1
FORMAT: ext4
REMAINING: 124735360
THISSIZE: 25 (0)
SECTORS: 128 + 124735360 .. 124735488
128,124735360,83,-
P: 2
FORMAT: none
REMAINING: 0
THISSIZE: 0 (0)
SECTORS: 124735488 + 0 .. 124735488
124735488,0,0,-
P: 3
FORMAT: none
REMAINING: 0
THISSIZE: 0 (0)
SECTORS: 124735488 + 0 .. 124735488
124735488,0,0,-
P: 4
FORMAT: none
REMAINING: 0
THISSIZE: 0 (0)
SECTORS: 124735488 + 0 .. 124735488
124735488,0,0,-
sfdisk: --Linux option is unnecessary and deprecated
-- DISK SIZE: 63864569856 bytes --
-- TOTAL SECTORS: 124735488 --
-- CYLINDERS: 7764 --
-- SECTORS PER CYLINDER: 16065 --
P: 1
FORMAT: ext4
REMAINING: 124735360
THISSIZE: 25 (0)
SECTORS: 128 + 124735360 .. 124735488
P: 2
FORMAT: none
REMAINING: 0
THISSIZE: 0 (0)
SECTORS: 124735488 + 0 .. 124735488
P: 3
FORMAT: none
REMAINING: 0
THISSIZE: 0 (0)
SECTORS: 124735488 + 0 .. 124735488
P: 4
FORMAT: none
REMAINING: 0
THISSIZE: 0 (0)
SECTORS: 124735488 + 0 .. 124735488
-- format partitions --
mke2fs 1.43.6 (29-Aug-2017)
The file /dev/sdc1 does not exist and no size was specified.
mount: /media/P1: special device /dev/sdc1 does not exist.
 
Last edited:
makesd can't still create a bootable letux sd card for me even with my desktop linux computer with debian stretch:

Downloads/letuxos$ sudo DEV=/dev/sdc ./makesd openpandora
1: ext4 25% b:/+http://download.goldelico.com/letux-u-boot/OpenPandora/latest/* k:/boot+http://download.goldelico.com/letux-kernel/latest/uImage dt:/boot+http://download.goldelico.com/letux-kernel/latest/device-trees.tbz r:http://download.goldelico.com/letux-debian-rootfs/latest-lxde.tbz m:http://download.goldelico.com/letux-kernel/latest/modules.tgz c:http://download.goldelico.com/letux-debian-rootfs/latest-config.tgz
2: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
3: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
4: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
umount: /boot: not mounted
umount: /boot: not mounted
umount: /dev/sdc: not mounted
umount: /dev/sdc1: not mounted
umount: /dev/sdc: not mounted
umount: /dev/sdc1: not mounted
total 0
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.953284 s, 1.1 MB/s
4+0 records in
4+0 records out
4 bytes copied, 0.00160346 s, 2.5 kB/s
sfdisk: --Linux option is unnecessary and deprecated
mke2fs 1.43.4 (31-Jan-2017)
The file /dev/sdc1 does not exist and no size was specified.
mount: special device /dev/sdc1 does not exist
 
Yes, it looks like a commit was pushed on Friday which looks like is intended to fix this. Redownload makesd from the link on the previous page and test if you feel like it; I'll try to get round to that tomorrow.
 
Still doesn't work.

# DEV=/dev/mmcblk0 ./makesd openpandora
1: ext4 25% b:/+http://download.goldelico.com/letux-u-boot/OpenPandora/latest/* k:/boot+http://download.goldelico.com/letux-kernel/latest/uImage dt:/boot+http://download.goldelico.com/letux-ke
rnel/latest/device-trees.tbz r:http://download.goldelico.com/letux-debian-rootfs/latest-lxde.tbz m:http://download.goldelico.com/letux-kernel/latest/modules.tgz c:http://download.goldelico.com
/letux-debian-rootfs/latest-config.tgz
2: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
3: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
4: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
umount: /boot: not mounted.
umount: /boot: not mounted.
umount: /dev/mmcblk0: not mounted.
umount: /dev/mmcblk0: not mounted.
total 0
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.389423 s, 2.7 MB/s
4+0 records in
4+0 records out
4 bytes copied, 0.00630765 s, 0.6 kB/s
sfdisk version: 2.30 002030000000
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk0: 7.3 GiB, 7860125696 bytes, 15351808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

>>> Created a new DOS disklabel with disk identifier 0x5fd73e80.
/dev/mmcblk0p1: Created a new partition 1 of type 'Linux' and of size 7.3 GiB.
/dev/mmcblk0p2: Start sector 15351808 out of range.
Failed to add #2 partition: Numerical result out of range
Leaving.
 
Seems to have got further though. How big of an SD card are you using? That start sector of the second sector is 7 and a bit GB from the start of the card, which aligns with the previous line in the log, but the tool claims it's off the end of the available space.

Edit: I guess it's an 8GB card. I just tried with a claimed 64GB card (it's actually 50-something GiB), and it created a first partition which was basically the size of the card, then fell over trying the make a second partition. I guess some of the arguments for creating the first partition are incompatible with our version of sfdisk.
 
Last edited:
Still doesn't work.

# DEV=/dev/mmcblk0 ./makesd openpandora
1: ext4 25% b:/+http://download.goldelico.com/letux-u-boot/OpenPandora/latest/* k:/boot+http://download.goldelico.com/letux-kernel/latest/uImage dt:/boot+http://download.goldelico.com/letux-ke
rnel/latest/device-trees.tbz r:http://download.goldelico.com/letux-debian-rootfs/latest-lxde.tbz m:http://download.goldelico.com/letux-kernel/latest/modules.tgz c:http://download.goldelico.com
/letux-debian-rootfs/latest-config.tgz
2: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
3: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
4: none 0% b:/+none k:/+none dt:/+none r:none m:none c:none
umount: /boot: not mounted.
umount: /boot: not mounted.
umount: /dev/mmcblk0: not mounted.
umount: /dev/mmcblk0: not mounted.
total 0
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.389423 s, 2.7 MB/s
4+0 records in
4+0 records out
4 bytes copied, 0.00630765 s, 0.6 kB/s
sfdisk version: 2.30 002030000000
Checking that no-one is using this disk right now ... OK

Disk /dev/mmcblk0: 7.3 GiB, 7860125696 bytes, 15351808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

>>> Created a new DOS disklabel with disk identifier 0x5fd73e80.
/dev/mmcblk0p1: Created a new partition 1 of type 'Linux' and of size 7.3 GiB.
/dev/mmcblk0p2: Start sector 15351808 out of range.
Failed to add #2 partition: Numerical result out of range
Leaving.
Can you please run it for the same SD card with the --debug option and provide the log?
[doublepost=1508139335,1508127791][/doublepost]Have now tried on some Debian 9.1 with sfdisk 2.29.2.
Yes, the problem is again sfdisk version compatibility.
The code tried to tell sfdisk to create empty partitions after the last non-empty partition.
Old sfdisk did accept but newer one complains and aborts.

A fix has been pushed.

Just run
Code:
./makesd -u
for self-update.
 
Last edited:
Successfully created the bootable SD Card.
Am I wrong the following still has not yet been implemented?

  1. Nubs are not working?
  2. Keyboard keymaps are not correct?
  3. Battery charging is not working?
  4. SD Card light keeps flashing. Does this mean it reads the sd card all the time like 100% of the time?
  5. Wifi is not working?
  6. Big, gigantic fonts?
  7. No shutdown option from gui?
  8. No 3D driver?
  9. No bluethooth?
  10. D-Pad not working?
  11. ABXY buttons not working?
Seems to run very snappy though.
 
Successfully created the bootable SD Card.
Am I wrong the following still has not yet been implemented?

  1. Nubs are not working?
  2. Keyboard keymap are not correct?
  3. Battery charging is not working?
  4. SD Card lights keep flashing. Does this mean it reads the sd card all the time?
  5. Wifi is not working?
  6. Big, gigantic fonts?
  7. No shutdown option from gui?
  8. No 3D driver?
  9. No bluethooth?
  10. D-Pad not working?
  11. ABXY buttons not working?
Seems to run very snappy though.
1. Nubs are working - but only after setting /proc/pandora correctly
2. keyboard maps are not correct
3. charging should work (even if nowhere indicated)
4. SD card leds are not connected to SD card events and just blink...
5. Wifi did work a while ago but is currently broken
6./7. This is just an almost unconfigured LXDE demo - you can apt-get install xfce or whatever you like and config to your needs
8. unfortunately, there is no 3D driver for kernels > 3.8 or so and nobody succeeded in fixing bugs
9. good question...
10./11. send events but Xorg.conf may not know about them

The core work from my side is on kernel and low level and LXDE is so far just a simple demo user space.
But it becomes interesting if someone adapts the Pyra OS... Or configures other GUI systems. It should even
be possible to install and config KDE or Gnome.
 
Back
Top