Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
|
notiz:chumby [2010/02/28 22:51] yvesf |
notiz:chumby [2010/06/13 17:10] (aktuell) yvesf |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ===== debian-chroot ===== | ===== debian-chroot ===== | ||
| - | * http://wiki.debian.org/ArmEabiHowto | ||
| <code=bash> | <code=bash> | ||
| #auf host; /armel-chroot = usbstick | #auf host; /armel-chroot = usbstick | ||
| Zeile 11: | Zeile 10: | ||
| * mount sys,proc,devpts,dev... | * mount sys,proc,devpts,dev... | ||
| * funktioniert, auch mit x-server | * funktioniert, auch mit x-server | ||
| - | ===== debian real / ===== | + | |
| - | * By changing the microSD card, backup first (untested: dd if=/dev/sdX | bzip2 - >~/chumby_sd_backup.img.bz2) | + | ===== multistrap ===== |
| - | * i think /dev/sdX1 || /dev/mmcblk0p1 holds the bootloader because `strings' found: | + | |
| - | * linux 0x40008000 "console=ttyAM0,115200 init=/linuxrc root=/dev/mmcblk0p3 rootfstype=ext3 ro rootwait lcd_panel=lms350 ssp1=mmc line=1 sysrq_always_enabled rotary=1 partition=recovery" | + | |
| - | * Chumby bootloader console v1.0 | + | |
| - | * so i will delete all partition except this and create a new big one and format with ext3 | + | |
| - | * put the debootstrap stuff on it | + | |
| - | * ln -s /sbin/init linuxrc | + | |
| - | * take modules from /lib/modules in chumby image modules-2.6.28-chumby.tar.gz | + | |
| - | * install watchdog | + | |
| - | * set /etc/inittab (tty: console) | + | |
| - | * /usr/chumby/scripts/mkdevs OR udev? | + | |
| - | ===== strap notizen ===== | + | |
| * http://wiki.debian.org/Multistrap | * http://wiki.debian.org/Multistrap | ||
| - | * qemu-emulation installieren | ||
| - | <code> | + | note: set directory (with trailing slash) |
| + | <code> | ||
| [General] | [General] | ||
| arch=armel | arch=armel | ||
| - | directory=/cross/1/ | + | directory=/target/ |
| # same as --tidy-up option if set to true | # same as --tidy-up option if set to true | ||
| cleanup=true | cleanup=true | ||
| Zeile 55: | Zeile 43: | ||
| </code> | </code> | ||
| - | nach multistrap im chroot: | + | * qemu-emulation installieren |
| + | * amd64 need libc6-i386 | ||
| + | * /etc/qemu-binfmt/arm -> /usr/$toolchain | ||
| + | * qemu static library ins chroot ''cp /usr/bin/qemu-arm-static /target_fs/usr/lib/qemu-binfmt/arm'' (nee eher ''/usr/bin/qemu-arm-static'') | ||
| + | |||
| + | nach multistrap im chroot: (''chroot . /bin/bash ... su -l'') | ||
| <code> | <code> | ||
| DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C dpkg --configure -a | DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C dpkg --configure -a | ||
| </code> | </code> | ||
| + | |||
| + | Error: | ||
| + | <code> | ||
| + | Setting up dash (0.5.5.1-3) ... | ||
| + | No diversion `any diversion of /bin/sh', none removed | ||
| + | Adding `diversion of /bin/sh to /bin/sh.distrib by dash' | ||
| + | /bin/cp: cannot stat `/bin/sh': No such file or directory | ||
| + | dpkg: error processing dash (--configure): | ||
| + | </code> | ||
| + | ln -s /bin/dash /bin/sh && dpkg-reconfigure see above && --configure for dash and bash | ||
| + | |||
| + | re-enter chroot | ||
| + | |||
| + | ===== configure real / ===== | ||
| + | * By changing the microSD card, backup first (untested: dd if=/dev/sdX | bzip2 - >~/chumby_sd_backup.img.bz2) | ||
| + | * i think /dev/sdX1 || /dev/mmcblk0p1 holds the bootloader because `strings' found: | ||
| + | * linux 0x40008000 "console=ttyAM0,115200 init=/linuxrc root=/dev/mmcblk0p3 rootfstype=ext3 ro rootwait lcd_panel=lms350 ssp1=mmc line=1 sysrq_always_enabled rotary=1 partition=recovery" | ||
| + | * Chumby bootloader console v1.0 | ||
| + | * so i will delete all partition except this and create a new big one and format with ext3 | ||
| + | * put the debootstrap stuff on it | ||
| + | * ln -s /sbin/init linuxrc | ||
| + | * take modules from /lib/modules in chumby image modules-2.6.28-chumby.tar.gz | ||
| + | * install apt, watchdog, module-init-tools, udev, dhcp3-client, wireless-tools, wpa-supplicant | ||
| + | * set /etc/inittab (tty: 115200 console instead of tty1) | ||
| + | * /usr/chumby/scripts/mkdevs OR udev? | ||
| + | * sudo tune2fs -c -1 -i 0 /dev/sdb2 | ||
| + | * watchdog runlevel 1 | ||
| + | * root password | ||
| + | * /etc/network/interfaces | ||
| + | * touch /fastboot | ||
| + | * /etc/default/rcS FSCKFIX=yes (time 1970 issue) | ||
| + | * rt73.bin | ||
| + | * xfbdev | ||
| + | * Xfbdev -screen <YOUR SCREEN PARAMETER> -mouse tslib,,device=/dev/input/touchscreen0" | ||
| + | * http://old.nabble.com/USB-keyboard-with-Xfbdev-(again)-td20501602.html | ||
| + | * http://readlist.com/lists/lists.freedesktop.org/xorg/2/10575.html | ||
| + | |||
| ===== sachen ===== | ===== sachen ===== | ||
| * stop chumby-flash-display /usr/chumby/script/stop_contr..*TODO | * stop chumby-flash-display /usr/chumby/script/stop_contr..*TODO | ||
| Zeile 81: | Zeile 111: | ||
| /dev/sdc6 39064 99073 600089+ 83 Linux # /mnt/psp | /dev/sdc6 39064 99073 600089+ 83 Linux # /mnt/psp | ||
| </code> | </code> | ||
| + | |||
| + | * http://wiki.edseek.com/guide:mount_loopback#mounting_with_a_specified_offset | ||
| === RS-232=== | === RS-232=== | ||
| Zeile 92: | Zeile 124: | ||
| * or install watchdog | * or install watchdog | ||
| - | **/etc/init.d/watchdog:** | + | **/etc/init.d/watchdog / /etc/defaults/watchdog:** |
| <code> | <code> | ||
| ... | ... | ||
| Zeile 125: | Zeile 157: | ||
| ===== Technical specs ===== | ===== Technical specs ===== | ||
| * Power consumption: Using USB-Devices (as keyboards, mouse and USB-attached-Storage) between 2 and 3W, without accessoires 1-2W (measured at the power cord) | * Power consumption: Using USB-Devices (as keyboards, mouse and USB-attached-Storage) between 2 and 3W, without accessoires 1-2W (measured at the power cord) | ||
| - | * ich glaub des chumby stinkt ein bisschen so nach neuem auto/plastik - marc mags | ||
| - | {{ :notiz:chumby.jpg?600 |Chumby unboxed}} | + | {{ :notiz:chumby.jpg?600 |Chumby unboxed }} |
| <code> | <code> | ||
| Zeile 154: | Zeile 185: | ||
| Press any key to enter shell... 0 | Press any key to enter shell... 0 | ||
| - | boot> regutil -w HW_RTC_WATCHDOG 0x00004e20 | + | regutil -w HW_RTC_WATCHDOG 0x00004e20 |
| - | Setting 0x8005c050: 0xffffffff -> 0x00004e20 ok | + | regutil -w HW_RTC_CTRL_SET 0x00000010 |
| - | + | regutil -w HW_EMI_CTRL 0x1c444040 | |
| - | boot> regutil -w HW_RTC_CTRL_SET 0x00000010 | + | regutil -w HW_POWER_BATTMONITOR 0x01ec0414 |
| - | Setting 0x8005c004: 0x00000008 -> 0x00000010 ok | + | regutil -w HW_POWER_5VCTRL_CLR 0x00000080 |
| - | + | regutil -w HW_POWER_MINPWR_SET 0x00001000 | |
| - | boot> regutil -w HW_EMI_CTRL 0x1c444040 | + | regutil -w HW_PINCTRL_MUXSEL1_SET 0x03300000 |
| - | Setting 0x80020000: 0x1c884040 -> 0x1c444040 ok | + | regutil -w HW_PINCTRL_DOUT0_CLR 0x24000000 |
| - | + | regutil -w HW_PINCTRL_DOE0_SET 0x24000000 | |
| - | boot> regutil -w HW_POWER_BATTMONITOR 0x01ec0414 | + | regutil -w HW_PINCTRL_DOUT0_CLR 0x24000000 |
| - | Setting 0x800440e0: 0x01a60600 -> 0x01ec0414 ok | + | regutil -w HW_PINCTRL_DOUT0_SET 0x20000000 |
| - | + | regutil -w HW_PINCTRL_DOUT0_SET 0x04000000 | |
| - | + | load krnA 0x40008000 | |
| - | boot> regutil -w HW_POWER_5VCTRL_CLR 0x00000080 | + | linux 0x40008000 "console=ttyAM0,115200 init=/linuxrc root=/dev/mmcblk0p2 rootfstype=ext3 ro rootwait lcd_panel=lms350 ssp1=mmc line=1 sysrq_always_enabled rotary=1" |
| - | Setting 0x80044018: 0x0403f193 -> 0x00000080 ok | + | |
| - | + | ||
| - | boot> regutil -w HW_POWER_MINPWR_SET 0x00001000 | + | |
| - | Setting 0x80044024: 0x00000040 -> 0x00001000 ok | + | |
| - | + | ||
| - | boot> regutil -w HW_PINCTRL_MUXSEL1_SET 0x03300000 | + | |
| - | Setting 0x80018114: 0xffffffff -> 0x03300000 ok | + | |
| - | + | ||
| - | boot> regutil -w HW_PINCTRL_DOUT0_CLR 0x24000000 | + | |
| - | Setting 0x80018508: 0x00000000 -> 0x24000000 ok | + | |
| - | + | ||
| - | boot> regutil -w HW_PINCTRL_DOE0_SET 0x24000000 | + | |
| - | Setting 0x80018704: 0x00000000 -> 0x24000000 ok | + | |
| - | + | ||
| - | boot> regutil -w HW_PINCTRL_DOUT0_CLR 0x24000000 | + | |
| - | Setting 0x80018508: 0x00000000 -> 0x24000000 ok | + | |
| - | + | ||
| - | boot> regutil -w HW_PINCTRL_DOUT0_SET 0x20000000 | + | |
| - | Setting 0x80018504: 0x00000000 -> 0x20000000 ok | + | |
| - | + | ||
| - | boot> regutil -w HW_PINCTRL_DOUT0_SET 0x04000000 | + | |
| - | + | ||
| - | Setting 0x80018504: 0x20000000 -> 0x04000000 ok | + | |
| - | + | ||
| - | boot> | + | |
| - | Reading 0x00025800 bytes from offset 0x00069800 to destination 0x44844000 | + | |
| - | Skipping 27008 chunks | + | |
| - | + | ||
| - | boot> load krnA 0x40008000 | + | |
| - | Reading 0x00400000 bytes from offset 0x000ff800 to destination 0x40008000 | + | |
| - | Skipping 65408 chunks | + | |
| - | + | ||
| - | boot> linux 0x40008000 "console=ttyAM0,115200 init=/linuxrc root=/dev/mmcblk0p2 rootfstype=ext3 ro rootwait lcd_panel=lms350 ssp1=mmc line=1 sysrq_always_enabled rotary=1" | + | |
| - | + | ||
| - | Going to run linux at offset 0x40008000 with cmdline console=ttyAM0,115200 init=/linuxrc root=/dev/mmcblk0p2 rootfstype=ext3 ro rootwait lcd_panel=lms350 ssp1=mmc line=1 sysrq_always_enabled rotary=1 | + | |
| </code> | </code> | ||
| Zeile 210: | Zeile 206: | ||
| * remove 4 screws on the main board, then pull it to the bottom of chumby, then remove the previously barred 2 screws (and the other 2) on the front | * remove 4 screws on the main board, then pull it to the bottom of chumby, then remove the previously barred 2 screws (and the other 2) on the front | ||
| * remove 4 screws on the black-boxed thing (the speakers) | * remove 4 screws on the black-boxed thing (the speakers) | ||
| - | ===== Links ===== | + | * |
| + | ===== streaming ===== | ||
| + | <code> | ||
| + | gst-launch-0.10 -t -v v4l2src ! videorate ! videoscale method=0 ! video/x-raw-yuv,width=\(int\)320,height=\(int\)240,framerate=\(fraction\)1/1 ! ffmpegcolorspace ! theoraenc speed-level=2 keyframe-force=1 quality=63 ! oggmux ! shout2send ip=127.0.0.1 port=8000 password=hackme mount=foo.ogg blocksize=512 | ||
| + | </code> | ||
| + | (320x240 2fps, 55%cpu) | ||
| - | * http://www.bunniestudios.com/blog/?p=611 - genaue Beschreibung der Chips und Video des Fertigungsprozesses | + | ===== Weblinks ===== |
| + | |||
| + | * http://www.bunniestudios.com/blog/?p=611 - detailed description of hardware (including fabrication) | ||
| * http://blogs.zdnet.com/Apple/?p=5552 | * http://blogs.zdnet.com/Apple/?p=5552 | ||
| - | * http://www.ifixit.com/Teardown/chumby-one-Teardown/1614/1 | + | * http://www.ifixit.com/Teardown/chumby-one-Teardown/1614/ |
| + | * http://wiki.debian.org/ArmEabiHowto | ||
| + | * http://xapek.org/~yvesf/chumby my chumby stuff | ||