micro adventures

February 28, 2010

PCM-4823L Single board computer Linux embedding

Filed under: SBC — Tags: , , , — Piotr @ 8:13 pm

A year ago I got a half-sized biscuit single board computer PCM-4823L from http://www.advantech.com. Now I finally found some time to tackle with embedding a Linux distribution into this PC.

I decided to go for DSL.

Installation to a Compact Flash (as root)

1. Got an empty CF, and create 3 partitions ext2/3: 100MB (> 50MB), 100MB, and swap 64-128MB

2. Install grub boot loader

2.1 Mount first partition

2.2 Change to the mounted CF  (eg: cd /mnt/cf)

2.3 Install grub:

grub-install  --no-floppy  --root-directory=.   /dev/<rootdevice>

Replace <rootdevice> with the corresponding file which represents your USB storage – my (/dev/sde ) do not use any number it should be MBR

3. Copy the DSL image content to CF

mount [/path_to/]current.iso /mnt/loop/ -o loop
cp -vR /mnt/loop/* /mnt/cf/

4. Create in ./boot/grub/menu.lst new file: menu.lst with following content:

timeout 10
default 0
title           DSL
root            (hd0,0)
kernel          /boot/isolinux/linux24 root=/dev/hda1 3 vga=normal noacpi noapm noscsi nopcmcia nousb noapm nomce noddc nofirewire frugal 2 dma lang=de restore=hda2 home=hda2 opt=hda2 host=DSL  dsl mydsl=hda2
initrd          /boot/isolinux/minirt24.gz

title           DSL-test
root            (hd0,0)
kernel          /boot/isolinux/linux24 root=/dev/hda1 ro lang=de frugal
initrd          /boot/isolinux/minirt24.gz

boot

5. Check the file /mnt/cf/boot/grub/device.map and update drive mapping acordingly e.g.

(hd0)    /dev/hda
(hd1)    /dev/hdb
(hd2)    /dev/hdc
(hd3)    /dev/hde

6. Remaster  DSL:

6.1 Extract KNOPPIX image from cd iso image

6.2 Extract the KNOPPIX file system (cloop rpm will be needed):

$ extract_compressed_fs /media/cdrom/KNOPPIX/KNOPPIX - > uncompressed-image
$ mkdir mnt1
$ sudo mount -o loop uncompressed-image mnt1
$ cp -a mnt1 extracted
$ rmdir extracted/.rr_moved
$ sudo umount mnt1
$ cd extracted

6.3 Customize DSL …

6.4 Compress file system back to the KNOPPIX

$ cd ..
$ mkisofs -hide-rr-moved -allow-leading-dots -R -l -V "KNOPPIX ISO9660" -v -allow-multidot $SAND_BOX | create_compressed_fs - 65536 > KNOPPIX2

Useful links:

  1. Frugal DSL Installation
  2. Hacking DSL

February 26, 2010

PSone Thrustmaster LCD to RGB got a picture!

Filed under: LCD — Piotr @ 9:31 pm

I was looking for a small LCD for my DTV and bought  on ebay a dead PSone with working Thrustmaster LCD for a quite encouraging prise of 2€. Unfortunately this LCD does not provide composite video input. Anyway I wanted to connect it to a video signal just to check if it worked.

It works, hereafter some information for those who wants to reuse this to connect to RGB Vidoe signal.

Pinout of the Sony Multi Video AV interface:

Pin Name Description
1 GND Ground
2 RT Right Audio
3 GND Ground
4 LT Left Audio
5 Y S-Video Y
6 SYNC Composite Sync
7 C S-Video C
8 VGND Video Ground
9 B Blue
10 +5V +5 VDC
11 R Red
12 G Green

Pinout of SCART interface:

scart-pinout2

Pin Name Description Signal Level Impedance
1 AOR Audio Out Right 0.5 V rms <1k ohm
2 AIR Audio In Right 0.5 V rms >10k ohm
3 AOL Audio Out Left + Mono 0.5 V rms <1k ohm
4 AGND Audio Ground
5 B GND RGB Blue Ground
6 AIL Audio In Left + Mono 0.5 V rms >10k ohm
7 B RGB Blue In 0.7 V 75 ohm
8 SWTCH Audio/RGB switch / 16:9 0-2 V=TV, 5-8 V=WideScreen, 9.5-12 V=AV Mode >10 kohm
9 G GND RGB Green Ground
10 CLKOUT Data 2: Clockpulse Out (Unavailable ??)
11 G RGB Green In 0.7 V 75 ohm
12 DATA Data 1: Data Out (Unavailable ??)
13 R GND RGB Red Ground
14 DATAGND Data Ground
15 R RGB Red In / Chrominance 0.7 V (Chrom.: 0.3 V burst) 75 ohm
16 BLNK Blanking Signal 1-3 V=RGB, 0-0.4 V=Composite 75 ohm
17 VGND Composite Video Ground
18 BLNKGND Blanking Signal Ground
19 VOUT Composite Video Out 1 V 75 ohm
20 VIN Composite Video In / Luminance 1 V 75 ohm
21 SHIELD Ground/Shield (Chassis)

The connection between LCD and SCART as a quick and dirty list:

LCD/PSone Multi AV  <=> SCART
 1 GND              <=> GND 21, 5, 9, 13, 18
 2 Right Audio      <=> AIR 2
 4 Left Audio       <=> AIL 6
 6 Sync             <=> VIN 20
 9 B                <=> B 7
11 R                <=> R 15
12 G                <=> G 9

VGA connection (stollen from http://forums.bit-tech.net/showthread.php?t=103008

Cable

Powered by WordPress