PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Spark7162



satstyler
30.08.2012, 21:07
Hi : D

I'm looking a trying to compile my own image for a Spark7162 receiver using the SH4 Duckbox project.

When i run ./make.sh and select the following options 20 8 3 3 2 2 2 1 and doing a make yaud-enigma2-pli-nightly. It all compiles ok

I then go into /flash and run the spark.sh script to create the e2jffs2.img and uImage.

What i would like to know is before running the spark.sh script do i need to do anything else ? I copied good audio.elf and video.elf and its selected during build. Do i need to copy good /modules to the filesystem before compression or anything ?

Many Thanks

DboxOldie
31.08.2012, 11:15
You must do something with the devs, the script uses fakeroot and the devs are not with the right permission.

JKM73
31.08.2012, 13:49
bei SSC Treiber kann man keine Aufnahmen mehr anschauen kommt eine Fehlermeldung PAT nicht gefunden kein TUNER verfügbar als ob er die Sendung suchen würde anstatt abzuspielen.

Bin jetzt wieder auf deinen ersten zurück der läuft bei mir ohne Probleme bei dem funzen nach dem Kanalsuchlauf auch die PayTV Kanäle.

Gruß JKM73


Ups falscher Thread

satstyler
31.08.2012, 14:14
You must do something with the devs, the script uses fakeroot and the devs are not with the right permission.

Thanks ... so do you mean you have to change the permissions on the devs ? before using the script ? or would it just be as easy to do a mkfs.jffs2 -r release -o e2jffs2.img -e 0x20000 -pn on the release directory ?

DboxOldie
31.08.2012, 15:18
Oh, I just see the fakeroot isn´t there anymore. Well, then try it and look in /tmp/ROOT if the devs are right. I use another way, because I don´t build as root.

satstyler
31.08.2012, 16:43
Thanks i will check that out .... if you don't mind me asking what way do you use ?

DboxOldie
31.08.2012, 16:47
I´ve made me a tar file with the devs, and let it extract per sudo in the script into /tmp/ROOT/dev. So the script works fine and in /out is an flashable Image.

satstyler
31.08.2012, 16:57
ok understand ... Many Thanks i shall give this a try

linch
31.08.2012, 23:30
First think hello to all guys sorry for english but i not speak deutch.........i'm trying build an openpli for my amiko alien2 (spark7162) from duckbox
I compile with ubuntu 12.04 x86 i have read many documents and firmware is build.
I work in this way and all is done from root.
1- i start with options 20-8-3-3-1-1-1
2- as from wiki i put into /home/tdt/tdt/cvs/cdk/root/boot audio and video.elf that i thake from protriple-x e2 image with same kernel (first doubt are correct files ?? and how many files and with wich name must be there ??)
3- build end is ok (i must only cross-compile into toolchain dbus package)
the problems...
4- if i build e2jffs2.img and uImage from /spark dir with spark.sh script when i put my usb on alien2 after 3-4 minutes and after it have /load e2-300/boot-success nothing happens.
5- if i build e2jffs2.img with command "mkfs.jffs2 -r release -o e2jffs2.img -e 0x20000 -pn" and take uImage from /boot folder put usb on alien2 and after 3-4 minutes and after /load e2-300/boot-success the bootup stop on display message "wait...load" and nothing happens.
I read first here something about dev but sorry i not understand......if someone have suggestions and help is welcome.
Many thanks and best regards.

DboxOldie
31.08.2012, 23:41
Look in the folder /tmp/ROOT/dev on your build system if the devs are right. ( Not only simple empty textfiles )

linch
31.08.2012, 23:54
Look in the folder /tmp/ROOT/dev on your build system if the devs are right. ( Not only simple empty textfiles )

You have right.....all files in /tmp/ROOT/dev are empty.
How to solve the problem ??
Many thanks for your answer.

DboxOldie
31.08.2012, 23:58
try to build as root or sudo ( I extract a right tarball with the devs into this Folder by the script with sudo rights )

cuebase
01.09.2012, 10:18
Look in the folder /tmp/ROOT/dev on your build system if the devs are right. ( Not only simple empty textfiles )

That is exactly what I have empty text files. may I ask what is the procedure to correct this.

Many thanks.

bonkel
01.09.2012, 10:37
try to build as root or sudo ( I extract a right tarball with the devs into this Folder by the script with sudo rights )
ist garnicht nötig

einfach in den dev ordner rein und dann
../etc/init.d/makedev start

und alles ohne root, weils mit fakeroot gut klappt und das is im script drin

linch
01.09.2012, 23:24
i have recompiled all with fedora and the build end fine without any package problem so when i start spark script work with fakeroot but ever empty file on /tmp/ROOT/dev if someone have an 7162 openpli nightly compiled please can upload here or on some free hosting for test on my amiko alien2 because will be possible at the moment that my box is not supported by duckbox. so if someone have a good dev.tar.gz i can try unpack it on release dir and rebuild the jffs2.img.............many thanks for your support.

edit1
i see now the fix for devs on master git by bonkel i retry rebuild my image.

KleinerSchelm
01.09.2012, 23:52
ja hier ist der Inhalt von /dev

linch
02.09.2012, 00:16
ja hier ist der Inhalt von /dev


many thanks ....I compared them but they are equal to my

linch
05.09.2012, 16:23
after Schischu come back to sudo from fakeroot into the code all working fine many thanks to all.

satstyler
12.09.2012, 20:50
Just tried to compile another image after updating the git ... the dev's do seem to be ok now after the move from fakeroot to sudo, but still have a finished image that fails to boot ... stays on 'load' on the VFD. Has anyone managed to build/compile and successfully install an image from this GIT ?

bonkel
12.09.2012, 20:55
without a log .....nothing to say

satstyler
12.09.2012, 21:08
Tried to get a log via serial but no matter what image is installed it only gives the Kernel details and some other info as below;


Board: STx7105-PDK [32-bit mode]




U-Boot 1.3.1 (Jun 19 2012 - 17:10:44) - stm23_0051 - YW_1.1.005 overclock


DRAM: 256 MiB
Panel: VFD
NAND: Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
512 MiB
SPI: info: found AT25DF161 (2MiB) device (page=256,erase=65536)
warning: SPI device may be write-protected (status=0x0c)
In: serial
Out: serial
Err: serial
Ident ic exist
Ident ic get stb id
IdentID : 0c 00 0a 00 00 15 d3
Hit ESC to stop autoboot: 0


Loading from NAND 512MiB 3,3V 8-bit, offset 0x18000000
Image Name: Linux-2.6.32.28_stm24_0207
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 2693637 Bytes = 2.6 MiB
Load Address: 80801000
Entry Point: 80802000
## Booting image at 80000000 ...
Image Name: Linux-2.6.32.28_stm24_0207
Image Type: SuperH Linux Kernel Image (gzip compressed)
Data Size: 2693637 Bytes = 2.6 MiB
Load Address: 80801000
Entry Point: 80802000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
stmac_phy_get_addr(): id1 = 0xffff, id2 = 0xffff
found phy at addres = 2
stmac_phy_get_addr(): id1 = 0x7, id2 = 0xc0f1
stb_id = c0a0015d3


Starting kernel console=ttyAS1,115200 rw root=/dev/mtdblock6 rootfstype=jffs2 init=/bin/devinit coprocessor_mem=4m@0x40000000,4m@0x40400000 printk=1 ip=172.100.100.249:172.100.100.174:172.100.100.174 :255.255.0.0:Enigma2:eth0:off stmmaceth=msglvl:0,phyaddr:2,watchdog:5000 bigphysarea=6000 nwhwconf=device:eth0,hwaddr00:0A:00D3 Manufacture=Spark-Project STB_ID=0C:00:0A:00:00D3 - 0x00000000 - 0 ...

DboxOldie
12.09.2012, 21:15
That´s the problem, it must be ttyAS0 !!! Therefore no more log comes from the kernel.

console=ttyAS1

bonkel
12.09.2012, 21:15
you must edit your bootargs to see more details...

satstyler
12.09.2012, 21:21
ah ok :) thanks will do that

linch
14.09.2012, 16:32
Just tried to compile another image after updating the git ... the dev's do seem to be ok now after the move from fakeroot to sudo, but still have a finished image that fails to boot ... stays on 'load' on the VFD. Has anyone managed to build/compile and successfully install an image from this GIT ?

Now git work great.....
have you right video.elf and audio.elf files ??

satstyler
14.09.2012, 21:07
Changed bootargs to ttyAS1 but still don't see any extra logs. Used audio.elf and video.elf from a working image so they should be ok. What do you use as your build environment ? Ubuntu , Fedora etc ? 32bit or 64 bit ?

bonkel
14.09.2012, 21:11
ubuntu 32 and 64 bit

DboxOldie
14.09.2012, 21:30
Once more: ttyAS1 is wrong !!!! it must be ttyAS0 , because the linux-kernel uses this line.
If you build the image from Git then it´s a debug image with the kernel config from Git and you will see the kernel messages.

satstyler
14.09.2012, 21:46
My apologies .. I misread your post .. Will try again many thanks

satstyler
26.09.2012, 20:12
Hi All,

Had a few problems with my serial cable so didn't have an opportunity to capture a log of failure. Missed the 1st part of the log due to not setting the scrollback properly ..but looks like a possible modules issue ?


usbcore: registered new interface driver usbfsusbcore: registered new interface driver hub
usbcore: registered new device driver usb
DMA: Registering DMA API.
Switching to clocksource TMU1
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de)..
Slow work thread pool: Starting up
Slow work thread pool: Ready
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.13)
JFS: nTxBlock = 905, nTxLock = 7244
msgmni has been set to 226
io scheduler noop registered
io scheduler anticipatory registered (default)
lirc_dev: IR Remote Control driver registered, major 61
lirc-stm: probe found data for platform device lirc-stm
lirc-stm: STM LIRC plugin using IRQ 125 in IR mode
lirc_dev: lirc_register_driver: sample_rate: 0
STMicroelectronics LIRC driver initialized.
STMicroelectronics ASC driver initialized
stm-asc.0: ttyAS0 at MMIO 0xfd032000 (irq = 121) is a stm-asc
stm-asc.1: ttyAS1 at MMIO 0xfd033000 (irq = 120) is a stm-asc
loop: module loaded
Davicom DM9161E: Registered new driver (0x0181b880)
Davicom DM9161A: Registered new driver (0x0181b8a0)
Davicom DM9131: Registered new driver (0x00181b80)
RTL821x Gigabit Ethernet: Registered new driver (0x001cc912)
STe100p: Registered new driver (0x1c040011)
STe101p: Registered new driver (0x00061c50)
Micrel KS8001 or KS8721: Registered new driver (0x0022161a)
Micrel KSZ9021 Gigabit PHY: Registered new driver (0x00221611)
Micrel KS8737: Registered new driver (0x00221720)
Micrel KS8041: Registered new driver (0x00221510)
Micrel KS8051: Registered new driver (0x00221550)
STMMAC driver:
platform registration...
done!
PMT module supported
DWMAC1000 - user ID: 0x10, Synopsys ID: 0x33
Enhanced descriptor structure
PARSE CMDLINE: 00:00:00:00:00:00
ETHADDR: 00:00:00:00:00:00
no valid MAC address;please, use ifconfig or nwhwconfig!
eth0 - (dev. name: stmmaceth - id: 0, IRQ #134
IO base addr: 0xfd110000)
STMMAC MII Bus: probed
eth0: PHY ID 0007c0f1 at 2 IRQ 0 (0:02) active
nwhw_config: (eth0) setting mac address: 30:00:0A:00:15:C6
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
stm_usb_probe: usb_phy_clk clock not found for stm-usb.0
stm-ehci stm-ehci.0: st-ehci
stm-ehci stm-ehci.0: new USB bus registered, assigned bus number 1
stm-ehci stm-ehci.0: irq 169, io mem 0xfe1ffe00
stm-ehci stm-ehci.0: USB 0.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
stm-ohci stm-ohci.0: stm-ohci
stm-ohci stm-ohci.0: new USB bus registered, assigned bus number 2
stm-ohci stm-ohci.0: irq 168, io mem 0xfe1ffc00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
stm_usb_probe: usb_phy_clk clock not found for stm-usb.1
stm-ehci stm-ehci.1: st-ehci
stm-ehci stm-ehci.1: new USB bus registered, assigned bus number 3
stm-ehci stm-ehci.1: irq 143, io mem 0xfeaffe00
stm-ehci stm-ehci.1: USB 0.0 started, EHCI 1.00
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
stm-ohci stm-ohci.1: stm-ohci
stm-ohci stm-ohci.1: new USB bus registered, assigned bus number 4
stm-ohci stm-ohci.1: irq 142, io mem 0xfeaffc00
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux video capture interface: v2.00
sh_tmu: TMU0 kept as earlytimer
sh_tmu: TMU1 kept as earlytimer
STMicroelectronics - Coprocessors st231 Init
st231.0 Coprocessor -------------------------------------------
flags 0001 RAM start at 0xbf000000 size 0x00400000
cop. addr 0x40000000
Channels : Not defined
IRQ : not used
---------------------------------------------------------------
st231.1 Coprocessor -------------------------------------------
flags 0001 RAM start at 0xbf400000 size 0x00400000
cop. addr 0x40400000
Channels : Not defined
IRQ : not used
---------------------------------------------------------------
DMA: Registering fdma_dmac.0 handler (16 channels).
IRQ 140/fdma_dmac.0: IRQF_DISABLED is not guaranteed on shared IRQs
stm-fdma stm-fdma.0: firmware: using built-in firmware fdma_STx7105_0.elf
DMA: Registering fdma_dmac.1 handler (16 channels).
platform fdma_dmac.0: SLIM hw 0.0, FDMA fw 2.1
IRQ 141/fdma_dmac.1: IRQF_DISABLED is not guaranteed on shared IRQs
stm-fdma stm-fdma.1: firmware: using built-in firmware fdma_STx7105_1.elf
stm-rng hardware driver 1.0 configured
platform fdma_dmac.1: SLIM hw 0.0, FDMA fw 2.5
Advanced Linux Sound Architecture Driver Version 1.0.21.
ALSA device list:
#0: STMicroelectronics STx7105 cut 4 SOC audio subsystem
TCP cubic registered
NET: Registered protocol family 17
NAND device: Manufacturer ID: 0x98, Chip ID: 0xdc (Toshiba NAND 512MiB 3,3V 8-bit)
stm-nand-flex: Using boot partition name [uboot] (from kernel config)
cmdlinepart partition parsing not available
Creating 7 MTD partitions on "stm-nand-flex.0":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000b00000 : "Spark kernel"
0x000000b00000-0x000001200000 : "Reserve0"
0x000001200000-0x000001400000 : "Reserve1"
0x000001400000-0x000018000000 : "Spark Userfs"
0x000018000000-0x000018800000 : "E2 kernel"
0x000018800000-0x00001ff00000 : "E2 Userfs"
stm-nand-flex: Found BOOT parition[uboot], updating ECC paramters
boot-ECC 0x00000000->0x00100000
stmmac: Rx Checksum Offload Engine supported
TX Checksum insertion supported
IP-Config: Complete:
device=eth0, addr=172.100.100.249, mask=255.255.0.0, gw=172.100.100.174,
host=Enigma2, domain=, nis-domain=(none),
bootserver=172.100.100.174, rootserver=172.100.100.174, rootpath=
Empty flash at 0x0229c170 ends at 0x0229c800
VFS: Mounted root (jffs2 filesystem) on device 31:6.
Freeing unused kernel memory: 132k freed
INIT: version 2.86 booting
PHY: 0:02 - Link is Up - 100/Full
init frontpanel
Fulan front panel driver
VfdType = 2
CpuType = 2
DisplayInfo = 1
scankeyNum = 8
swMajorVersion = 1
swSubVersion = 10
input: fulan front panel buttons as /devices/virtual/input/input0
[simu_button] initializing ...
[simu_button] allocating and registering button device
input: TDT RC event driver as /devices/virtual/input/input1
insmod: can't insert '/lib/modules/encrypt.ko': No such file or directory
Mount /dev in tmpfs
Copying device nodes to /dev
Starting portmap daemon....
Loading autofs
Starting autofs
Starting DEBUG Interface
Mounting local filesystems...
mount: mounting /dev/sda1 on /hdd failed: No such device or address
Cleaning /tmprmdir: './autoiagxTS': Device or resource busy
rmdir: './autoMfEZww': No such file or directory
find: ./autoW4nCuT: No such file or directory
find: ./autoGPTxPw: No such file or directory
.
Hostname: spark7162.
starting telnetd
init stmfb
stmcore-display: using HDMI hotplug
stmcore-display: STi7105 display: probed
device probe found 2 display pipelines
requesting frm: 'component.fw', c11dd764/875c7c50
stm-awg: firmware: requesting component.fw
frm 'component.fw' successfully loaded
requesting frm: 'fdvo0.fw', c11dd764/875c7fd0
stm-awg: firmware: requesting fdvo0.fw
loading frm: 'fdvo0.fw' failed: -2
stmfb: fb0 parameters = "1280x720-32@50:15m:pal:yuv:yuv"
stmfb: fb1 parameters = "<NULL>"
LOADING MODULES
load a firmware
copLoadFile (file /boot/audio.elf)
ustslave: Kernel Version: 24
base_address 0x40400000
seeking to d0000000
seeking to d0005f00
seeking to d0012320
seeking to d001aa20
seeking to d0173100
seeking to d0173138
seeking to d0173170
seeking to d01b9058
seeking to d01b9060
seeking to d01b9068
seeking to d01b9070
seeking to d01d0920
seeking to d01d0a00
load v firmware
copLoadFile (file /boot/video.elf)
ustslave: Kernel Version: 24
base_address 0x40000000
seeking to d0000000
seeking to d004e020
seeking to d00f8378
seeking to d00f83b0
seeking to d00f83e8
seeking to d010ce98
seeking to d010cea4
seeking to d010ceb0
seeking to d012ed90
seeking to d012cd74
seeking to d012ee00
init embx

DboxOldie
27.09.2012, 09:30
The log seems quite OK till the point loading audio.elf / video.elf.
While loading audio.elf there have to be a few more "seeking to .." and while loading video.elf a little bit less.
The addresses although are looking strange, perhaps your uses the wrong audio / video files.

example for audio.elf:

copLoadFile (file /boot/audio.elf)
ustslave: Kernel Version: 24
base_address 0x40400000
seeking to 0
seeking to 400
seeking to 5c18
seeking to b058
seeking to ff08
seeking to 136f0
seeking to 15008
seeking to 15018
...........
...........

and a few more.

satstyler
27.09.2012, 11:43
ok thanks ... i'll check out on the audio/video.elf and look to try some different ones from a good image

satstyler
29.09.2012, 00:00
All working now with different audio/video.elf files. Many thanks for your help.