Ck100-dlcode
From Cool-Idea
Downloading code to CK100 is quite easy if you are on a Linux box. Be sure you understand the topology of CK100's partitions before you do anything to CK100...
Contents |
Overview of CK100 Partitions
- Partition #1: FAT32
- Store you data here; music, video, photo, etc...
- formatted as FAT32 to welcome MS Windows users
- Partition #2: rootfs/ramdisk.img
- Root filesystem
- EXT2
- Partition #3: ukernel2
- Linux kernel image with u-boot header
Check your CK100 disk ID
- Connect CK100 to your Linux box via USB
- 'dmesg' to see if it is properly recognized
- 'sudo fdisk -l' to view its disk ID, such as "/dev/sdb"
Full download
- Assume CK100 is "/dev/sdb"
- Make sure your automount feature is turned off.
- Prepare your own ramdisk.img and ukernel2
- 'dd' the images:
# sudo dd if=ukernel2 of=/dev/sdb3 # sudo dd if=ramdisk.img of=/dev/sdb2
- Disconnect CK100 from PC, reboot CK100 and that's it!
Partial download
- Assume CK100 is "/dev/sdb"
- This is suitable if you have modified only a certain module or executable and you want to test it quickly
- Mount the rootfs:
# sudo mount /dev/sdb2 /mnt
- Copy the files to CK100
# sudo cp DST /mnt/DST
- Unmount it
# sudo umount /mnt/
- Disconnect CK100 from PC, reboot CK100 and that's it!
