Download Pyra Debian OS (WIP)


I will test it tonight, this makes creating a boot disk easily. On Windows i'm using win32diskimager, start as admin, write the image to SD card.

In extlinux.conf, timeout setting is ignored, it will start the image, set in default, immediately. Any hint for me?

Thomas
 
Last edited:
Sorry, but image didn't boot from SD card. In serial terminal i see uBoot is started and output is:

U-Boot SPL 2016.03-dirty (Jun 17 2016 - 23:17:24)
OMAP5432 ES2.0
Trying to boot from MMC
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!


U-Boot 2016.07-rc1-00026-g6b3943f-dirty (Jun 15 2016 - 02:10:21 +0200)

CPU : OMAP5432-GP ES2.0
Board: OMAP5432 uEVM
I2C: ready
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
** First descriptor is NOT a primary desc on 1:1 **
SCSI: SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
Found 0 device(s).
Net: No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices... 1 Ethernet Device(s) found

USB device 0:
Device 0: device type unknown
... is now current device
** Bad device usb 0 **
** Bad device usb 0 **
scanning bus for devices...
Found 0 device(s).

Device 0: not available
** First descriptor is NOT a primary desc on 1:1 **
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
Waiting for Ethernet connection... done.
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.0.93 (1459 ms)
Using sms0 device
TFTP from server 0.0.0.0; our IP address is 192.168.0.93; sending through gateway 192.168.0.1
Filename 'boot.scr.uimg'.
Load address: 0x90000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
Waiting for Ethernet connection... done.



The partition is on SD card, i can see it:

=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> mmc part

Partition Map for MMC device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 2048 6141952 00000000-01 83 Boot

=> ext4ls mmc 0:1
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 16384 lost+found
<DIR> 4096 var
<DIR> 4096 usr
<DIR> 4096 bin
<DIR> 4096 lib
<DIR> 4096 etc
<DIR> 4096 tmp
<DIR> 4096 sys
<DIR> 4096 sbin
<DIR> 4096 run
<DIR> 4096 root
<DIR> 4096 proc
<DIR> 4096 home
<DIR> 4096 dev
<DIR> 4096 boot
<DIR> 4096 mnt
<DIR> 4096 srv
<DIR> 4096 opt
<DIR> 4096 media

=> ext4ls mmc 0:1 /boot
<DIR> 4096 .
<DIR> 4096 ..
2409741 System.map-4.6.0-letux-pyra+
129856 config-4.6.0-letux-pyra+
<DIR> 4096 extlinux
4542928 vmlinuz-4.6.0-letux-pyra+
3531112 initrd.img-4.6.0-letux-pyra+
=> ext4load mmc 0:1 0x80800000 /boot/vmlinuz-4.6.0-letux-pyra+
=> bootz 0x80800000
Kernel image @ 0x80800000 [ 0x000000 - 0x4551d0 ]

Starting kernel ...



Thats all, system hangs.

If i connect my harddisk, my previous images from you and stevenc99 is shown in boot manager, i can boot both.

Thomas
 
Looks like i mixed up the MLO and u-boot.img from different versions.
Another problem is that it seems to load MLO from the sd card, but then loads the u-boot from the emmc.
I'll wipe my emmc, rebuild u-boot, rebuild the image , and see if i can get something working.

It should also be trying to load omap5-uevm instead of the omap5-pyra.dtb it tries to load on your board.
[doublepost=1466541297,1466536213][/doublepost]i've updated http://packages.pyra-handheld.com/images/extra/pyra-debian-jessie-mate.img.7z .
MLO should report itself as U-Boot SPL 2016.03-dirty (Jun 17 2016 - 23:17:24) , u-boot as U-Boot 2016.03-dirty (Jun 17 2016 - 23:17:24 +0200)
As usual, it works fine here. I wiped the first 100mb of the emmc, just to be sure there's nothing on there that might interfere.
(dd if=/dev/zero bs=1M count=100 of=/dev/mmcblk0)
[doublepost=1466546115][/doublepost]
Will MATE be an official option for the Pyra then?

It will be an option, and most likely the default. It's slightly more polished than xfce, but still reasonably light weight.
 
Sorry, no success.

It load kernel, but switch to "mmc 1" and i have no partition on emmc.

Pyra Boot Menu
1: Debian GNU/Linux, kernel 4.6.0-letux-pyra+
2: Debian GNU/Linux, kernel 4.6.0-letux-pyra+ (recovery mode)
Enter choice: 1
1: Debian GNU/Linux, kernel 4.6.0-letux-pyra+
Retrieving file: /boot/initrd.img-4.6.0-letux-pyra+
3546625 bytes read in 187 ms (18.1 MiB/s)
Retrieving file: /boot/vmlinuz-4.6.0-letux-pyra+
4542928 bytes read in 236 ms (18.4 MiB/s)
append: root=UUID=5528e5e7-ca00-4beb-9809-8a69369bd2b9 console=ttyO2,115200n8 rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 vram=12M omapfb.vram=0:8M,1:4M omapdss.def_disp=hdmi
Retrieving file: /usr/lib/linux-image-4.6.0-letux-pyra+/omap5-pyra.dtb
** File not found /usr/lib/linux-image-4.6.0-letux-pyra+/omap5-pyra.dtb **
Skipping l0 for failure retrieving fdt
2: Debian GNU/Linux, kernel 4.6.0-letux-pyra+ (recovery mode)
Retrieving file: /boot/initrd.img-4.6.0-letux-pyra+
3546625 bytes read in 188 ms (18 MiB/s)
Retrieving file: /boot/vmlinuz-4.6.0-letux-pyra+
4542928 bytes read in 235 ms (18.4 MiB/s)
append: root=UUID=5528e5e7-ca00-4beb-9809-8a69369bd2b9 console=ttyO2,115200n8 rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 vram=12M omapfb.vram=0:8M,1:4M omapdss.def_disp=hdmi single
Retrieving file: /usr/lib/linux-image-4.6.0-letux-pyra+/omap5-pyra.dtb
** File not found /usr/lib/linux-image-4.6.0-letux-pyra+/omap5-pyra.dtb **
Skipping l0r for failure retrieving fdt
SCRIPT FAILED: continuing...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
scanning usb for ethernet devices... 1 Ethernet Device(s) found

USB device 0: unknown device
scanning bus for devices...
Found 0 device(s).

SCSI device 0:
Device 0: not available
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
Waiting for Ethernet connection... done.
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.0.93 (1462 ms)
Using sms0 device
TFTP from server 0.0.0.0; our IP address is 192.168.0.93; sending through gateway 192.168.0.1
Filename 'boot.scr.uimg'.
Load address: 0x90000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
Waiting for Ethernet connection... done.
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.0.93 (1211 ms)
Using sms0 device
TFTP from server 0.0.0.0; our IP address is 192.168.0.93; sending through gateway 192.168.0.1
Filename 'boot.scr.uimg'.
Load address: 0x82000000
Loading: T T T T T T T


=> root=UUID=5528e5e7-ca00-4beb-9809-8a69369bd2b9

Is this my sd card (mmc 0)?
Thomas
 
Last edited:
It's still trying to load omap5-pyra.dtb. It should not be doing that at all, u-boot.img doesn't even have that string in it.
I have no idea where it's getting that from. Unless you either changed it yourself, have some *.scr file somewhere that sets it back to omap5-pyra.dtb, or some saved uboot env that resets it. (because i don't see the "*** Warning - bad CRC, using default environment" i get here).
Go into uboot, press a key when you get the "Hit any key to stop autoboot" , do "printenv fdtfile" , check if it says omap5-uevm.dtb, if not, do a "env default -a -f" , and check again.
Now do either "saveenv" , or wipe the uboot stuff from the emmc with "dd if=/dev/zero bs=1M count=100 of=/dev/mmcblk0" when you've booted into linux (which is probably a good idea, since uboot will probably change a lot, and those saved env setting will probably interfere when anything changes.. as it probably did now)

The rest of the output is as expected.
This image tries to find the root partition based on the partion ID instead of the device name, so it can theoretically boot it from any sd card slot, or any other device the kernel knows about.
 
Hi aTC,

i never setup emmc and fdisk said, there is no partition table.

=> printenv fdtfile
fdtfile=omap5-pyra.dtb

=> env default -a -f
=> printenv fdtfile
fdtfile=omap5-uevm.dtb

=> boot

Now, it boot from sd card.

Thomas
 
i think u-boot just dumps its settings to the emmc even if there's no partitions there.
You must have done a saveenv somewhere.
 
Is Vivante GC 320 2D supported in this OS?

I didn't found any kernel module or firmware or user space driver. If not, it is possible to add the support, i found only information for 3.X kernel from TI.

Thomas
 
I compiled a new kernel from Golden Delicious, 4.7-rc6, with etnaviv (reverse vivante) support and new kernel module was created.

modprobe etnaviv
=> [30257.923139] driver_register 'etnaviv-gpu'
=> [30257.928086] driver_register 'etnaviv'

What next? I didn't found any info for testing 2D part of this driver.

Thomas
 
I compiled a new kernel from Golden Delicious, 4.7-rc6, with etnaviv (reverse vivante) support and new kernel module was created.

modprobe etnaviv
=> [30257.923139] driver_register 'etnaviv-gpu'
=> [30257.928086] driver_register 'etnaviv'

What next? I didn't found any info for testing 2D part of this driver.

Thomas

May want to talk to @zmatt he's been doing a bit of work with it lately.
 
I compiled a new kernel from Golden Delicious, 4.7-rc6, with etnaviv (reverse vivante) support and new kernel module was created.

modprobe etnaviv
=> [30257.923139] driver_register 'etnaviv-gpu'
=> [30257.928086] driver_register 'etnaviv'

What next? I didn't found any info for testing 2D part of this driver.

Thomas
I don't think etnaviv is the right kernel module for the 2D accelerator.

This is how far I got last time I tried: https://pyra-handheld.com/boards/threads/how-to-get-rotation-working.75994/page-4#post-1343852
 
@KidPaddle, is etnaviv is included in the goldelico tree, I mean you just compiled the kernel ?
I'm interested in this 'cause I'd like to see video acceleration soon, I'm sick of having a high cpu usage when watching.

BTW for those interested I ran a little temperature test on the IGEP. I added a bigger heatsink, and with a huge air flow I compiled @ -j3 1.5GHz, the cpu stays below 70°C.
 
@Linux-SWAT

Yes, got latest source from git://git.goldelico.com/gta04-kernel.git, 4.7-rc6 and compiled it. Maybe you have to change in letux_defconfig
CONFIG_DRM_ETNAVIV=m and CONFIG_DRM_ETNAVIV_REGISTER_LOGGING=n to build new module.

But, only GC320 on framebuffer is supported on OMAP 5432 EVM board, no EGL acceleration, no mesa/drm integration. There is a fork, https://github.com/laanwj/mesa, but i think, only for 3D gpu's.

@slaeshjag
I have to read your posts, thanks.

Thomas
 
Ok, thanks for the info.
Maybe I should try to launch MPlayer under console with fb driver ?
 
I can build a working kernel, but I have no etnaviv module.
Which defconfig did you use ?
 
The config i got from "zcat /proc/config.gz > .config", booted aTC - Linux image with kernel 4.6.

I changed line 5 in file "drivers/gpu/drm/etnaviv/Kconfig"

from "depends on ARCH_MXC || ARCH_DOVE"
to "depends on ARCH_MXC || ARCH_DOVE || ARM || ARM64"

before i run "make menueconfig".
Thomas
 
Last edited:
I think, slaeshjag is right, that the build in kernel module etnaviv is not the right kernel module for 2D. I will check bltsville again, but i looked at before and found no samples/tools for it, so i checked alternatives.

Thomas

PS.:
Working now on a ssd disc, very nice :)
 
Back
Top