ax206term
Re: LCD screen for your dockstar (cheap! <$5) April 28, 2012 09:47PM |
neon
Re: LCD screen for your dockstar (cheap! <$5) April 29, 2012 12:32AM |
./st2205term --dpf --font=giant --keyboard=/dev/input/event3 --keymap=./us.kmap INFO: using fontdata from file /tmp/st2205term-0.11/fonts.txt INFO: picframe selection automatic (polling /dev/disk/by-id) load_kmap(./us.kmap) - loading key defintions load_kmap(./us.kmap) - 71 key defintions loaded load_font(/tmp/st2205term-0.11/fonts.txt,3) - loading font defintion Found AX206 DPF Got LCD dimensions: 128x128 create_terminal 128x128 pixels => 14x8 chars rote_vt_forkpty: command='/bin/bash --login' PID=-1 INFO: successfully connected to picframe Opened device /dev/input/event3 (/dev/input/event3) => USB KeyboardI can see characters on the screen, but there's no terminal. Is this "rote_vt_forkpty" has something to do with librote? I can't test it on dockstar because I have only PC.
Re: LCD screen for your dockstar (cheap! <$5) April 29, 2012 04:02AM |
Registered: 12 years ago Posts: 365 |
ax206term
Re: LCD screen for your dockstar (cheap! <$5) April 29, 2012 04:59AM |
Re: LCD screen for your dockstar (cheap! <$5) April 29, 2012 08:00AM |
Registered: 14 years ago Posts: 261 |
rote_vt_forkpty: command='/bin/bash --login' PID=-1This means that the command that runs in the terminal failed to start. Basically "/bin/bash --login" failed - either bash is somewhere else like /usr/bin/bash or its the "--login" parameter causing problems because you are root during startup.
st2205term --command="./stats -t=./template.txt" ... # note: best to use the full path to stats & templates.txt>
# keyname ev-code lower shift ctrl alt A 30 'a' 'A' 0x00 0x00 B 48 'b' 'B' 0x00 0x00 C 46 'c' 'C' 0x03 0x03 D 32 'd' 'D' 0x04 0x04 ...ev-code: the event code that comes from the USB keyboard device when the key is pressed. Just swap the values around in the file if its mapping to the wrong character. For unknown mappings the easiest way to find the ev-code is to hack evkey2linuxkey() in st2205term.c and output info about unknown events to a file, run st2205term then press they key thats not mapped, then examine the file :-)
Re: LCD screen for your dockstar (cheap! <$5) April 29, 2012 08:49PM |
Registered: 14 years ago Posts: 261 |
ax206term
Re: LCD screen for your dockstar (cheap! <$5) April 30, 2012 08:52AM |
fbset -fb /dev/fb1 -i mode "128x128" geometry 128 128 128 128 16 timings 0 0 0 0 0 0 0 rgba 8/0,8/0,8/0,0/0 endmode Frame buffer device information: Name : AX206 DPF Frame Address : 0xffffc9002286a000 Size : 2097152 Type : PACKED PIXELS Visual : PSEUDOCOLOR XPanStep : 1 YPanStep : 1 YWrapStep : 1 LineLength : 0 Accelerator : No
Found AX206 DPF Got LCD dimensions: 128x128 Waiting for update events from FB device /dev/fb1 ..
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 02, 2012 07:53AM |
cat rb.raw > /dev/fb1 #display image cat /dev/zero > /dev/fb1 #blank screen cat /dev/random > /dev/fb1 #display random bitsrb.raw is a 128x128 or 320x240 RGB888 image file prepared with ffmpeg"
ffmpeg -i rainbow.jpg -f rawvideo -vcodec rawvideo -pix_fmt rgb24 -s 128x128 rb.raw
VO: [fbdev2] 320x240 => 320x240 BGRA [fbdev2] visual: 3 not yet supported FATAL: Cannot initialize video driver. Too many buffered pts
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 02, 2012 08:15AM |
mount -t debugfs none /sys/kernel/debugis needed for ax206fb before insmod. The module creates /sys/kernel/debug/ax206fb
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 03, 2012 08:30AM |
time cat rb2.raw > /dev/fb0 real 0m0.010s user 0m0.000s sys 0m0.000s time cat /dev/zero > /dev/fb0 cat: write error: No space left on device real 0m0.013s user 0m0.000s sys 0m0.000s
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 03, 2012 08:45AM |
gabychan
Re: LCD screen for your dockstar (cheap! <$5) May 04, 2012 02:41PM |
[ 1656.455350] Initializing USB Mass Storage driver... [ 1656.455531] scsi4 : usb-storage 4-1:1.0 [ 1656.455836] usbcore: registered new interface driver usb-storage [ 1656.455838] USB Mass Storage support registered. [ 1657.459117] scsi 4:0:0:0: CD-ROM buildwin Photo Frame 1.01 PQ: 0 ANSI: 2 [ 1657.466114] sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray [ 1657.466268] sr 4:0:0:0: Attached scsi CD-ROM sr1 [ 1657.467113] sr 4:0:0:0: Attached scsi generic sg3 type 5 root@YAVDR:/home/gaby/dpf-ax/fw# sudo python knowndpfs.py /dev/sg3 root@YAVDR:/home/gaby/dpf-ax/fw# sudo python fulldump.py /dev/sg3 Opening generic SCSI device '/dev/sg3' Manufacturer: Apple Size : 1 MB Reading 100000 bytes... Wrote full.bin root@YAVDR:/home/gaby/dpf-ax/fw# sudo python hackit.py /dev/sg3 python: can't open file 'hackit.py': [Errno 2] No such file or directory root@YAVDR:/home/gaby/dpf-ax/fw# sudo python identify.py /dev/sg3 ^CTraceback (most recent call last): File "identify.py", line 346, in <module> data = f.read() KeyboardInterrupt root@YAVDR:/home/gaby/dpf-ax/fw# sudo python detect.py /dev/sg3 Opening generic SCSI device '/dev/sg3' Manufacturer: Apple Size : 1 MB root@YAVDR:/home/gaby/dpf-ax/fw#
dxfr
Re: LCD screen for your dockstar (cheap! <$5) May 04, 2012 08:51PM |
gabychan
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 01:47AM |
> sudo python identify.py full.bin >
root@YAVDR:/home/gaby/dpf-ax/fw# sudo python identify.py full.bin Looking for buildwin firmware....: Found (320x240 px). Looking for known version info...: None. Looking for Openwin..............: Found. Looking for LcdIniTbl............: Found. Looking for known signatures.....: None. Sorry, no matching dpf found.
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 04:02AM |
Registered: 12 years ago Posts: 365 |
gabychan
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 06:00AM |
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 06:56AM |
Registered: 12 years ago Posts: 365 |
gabychan
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 09:04AM |
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 09:28AM |
Registered: 12 years ago Posts: 365 |
gabychan
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 09:48AM |
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 10:09AM |
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 05, 2012 10:07PM |
static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y) { char *imagebuff; uint8_t *in = src[0]; uint8_t *dest = dpf_imagebuff + (dpf_h->width * y + x) * 2; int next = dpf_h->width * 2; int i,j; //make sure we won't cross the boundaries of dest if (x>319) return 0; if (y>239) return 0; if (w+x>dpf_h->width) w=dpf_h->width-x; if (h+x>dpf_h->height) h=dpf_h->height-x; for (i = 0; i < h; i++) { //manually do a memcpy because the bytes //should be flipped first :X for (j=0; j<w; j++) { dest[j*2]=(unsigned char)(RGB565_0(in[j*3+2],in[j*3+1],in[j*3])); dest[j*2+1]=(unsigned char)(RGB565_1(in[j*3+2],in[j*3+1],in[j*3])); } dest += next; in += stride[0]; } return 0; }
./mplayer -vo dpf -vf scale=320:240 -ao sdl -cache 8192 -framedrop test.mkv
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 06, 2012 05:27AM |
static int query_format(uint32_t format) { if (dpf_preinit(0)) return 0; switch(format) { case IMGFMT_BGR16: return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_ACCEPT_STRIDE; return 0; } return 0; } static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y) { char *imagebuff; uint8_t *in = src[0]; uint8_t *dest = dpf_imagebuff + (dpf_h->width * y + x) * 2; int next = dpf_h->width * 2; int i,j; //make sure we won't cross the boundaries of dest if (x>319) return 0; if (y>239) return 0; if (w+x>dpf_h->width) w=dpf_h->width-x; if (h+x>dpf_h->height) h=dpf_h->height-x; for (i = 0; i < h; i++) { //manually do a memcpy because the bytes //should be flipped first :X for (j=0; j<w; j++) { dest[j*2]=in[j*2+1]; dest[j*2+1]=in[j*2+1]; } dest += next; in += stride[0]; } return 0; }
ax206term
Re: LCD screen for your dockstar (cheap! <$5) May 06, 2012 07:25AM |
Re: LCD screen for your dockstar (cheap! <$5) May 09, 2012 07:26AM |
Registered: 12 years ago Posts: 61 |
Re: LCD screen for your dockstar (cheap! <$5) May 09, 2012 09:19AM |
Registered: 12 years ago Posts: 61 |
X14a1: mov _p3dir,#0x0 ; 14a1 75 ec 00 ul. anl _p1dir,#0xe8 ; 14a4 53 ea e8 Sjh anl _p2dir,#0xfd ; 14a7 53 eb fd Sk} orl _wdtcon,#0x20 ; 14aa 43 bb 20 C; clr _LCD_CS ; 14ad c2 a1 B! clr _LCD_RST ; 14af c2 90 B. mov a,#0x96 ; 14b1 74 96 t. lcall X154c ; 14b3 12 15 4c ..L setb _LCD_RST ; 14b6 d2 90 R. mov a,#0x96 ; 14b8 74 96 t. lcall X154c ; 14ba 12 15 4c ..L mov r7,#0x0 ; 14bd 7f 00 .. mov a,#0x2f ; 14bf 74 2f t/ mov dptr,#X16a6 ; 14c1 90 16 a6 ..& lcall tramp_jsr ; 14c4 12 19 38 ..8 ret ; 14c7 22 "
X16a6: movx a,@r0 ; 16a6 e2 b mov r4,a ; 16a7 fc | clr a ; 16a8 e4 d xch a,r3 ; 16a9 cb K jz X16b9 ; 16aa 60 0d `. X16ac: xch a,r3 ; 16ac cb K add a,r3 ; 16ad 2b + xch a,r3 ; 16ae cb K mov b,r6 ; 16af 8e f0 .p mul ab ; 16b1 a4 $ add a,r4 ; 16b2 2c , mov r4,a ; 16b3 fc | clr a ; 16b4 e4 d addc a,b ; 16b5 35 f0 5p jnz X16ac ; 16b7 70 f3 ps X16b9: mov a,r3 ; 16b9 eb k mov b,r5 ; 16ba 8d f0 .p mul ab ; 16bc a4 $ xch a,r4 ; 16bd cc L mov b,r2 ; 16be 8a f0 .p div ab ; 16c0 84 . mov r3,b ; 16c1 ab f0 +p add a,r4 ; 16c3 2c , movx @r0,a ; 16c4 f2 r dec r0 ; 16c5 18 . djnz r1,X16a6 ; 16c6 d9 de Y^ ret ; 16c8 22 "Or am I missing the point completely?
Re: LCD screen for your dockstar (cheap! <$5) May 09, 2012 10:11AM |
Registered: 12 years ago Posts: 365 |
mov a,#0x2f ; 14bf 74 2f t/ mov dptr,#X16a6 ; 14c1 90 16 a6 ..& lcall tramp_jsr ; 14c4 12 19 38 ..8calls offset 0x16a6 in module 48, which is the usual dump-LcdIniTbl-to-display routine. Thats what _lcd_custom_init in lcdinit.s does.
gabychan
Re: LCD screen for your dockstar (cheap! <$5) May 09, 2012 10:32AM |
> mov a,#0x2f ; 14bf 74 2f t/ > mov dptr,#X16a6 ; 14c1 90 16 a6 ..& > lcall tramp_jsr ; 14c4 12 19 38 ..8 >> calls offset 0x16a6 in module 48, which is the
Re: LCD screen for your dockstar (cheap! <$5) May 09, 2012 10:59AM |
Registered: 12 years ago Posts: 365 |
gabychan
Re: LCD screen for your dockstar (cheap! <$5) May 09, 2012 11:20AM |