project images: debian_olpc indt_olpc
Hi all,
Based on some other images, I created a simple image relating debian and olpc. The other(below) relates olpc and indt.
Hi all,
Based on some other images, I created a simple image relating debian and olpc. The other(below) relates olpc and indt.
This is the way that I use to update the OLPCs here in INdT. You need to use a pen drive and put the auto install files in your pen drive. I’m using the OLPC pen drive format. I don’t know if it’s necessary to auto reinstall, but I’m using this format and it’s working.
I formated the pen drive using the OLPC format(partition 1=primary, files ystem type=ext3,label=OLPCRoot). I wrote a tutorial about it already reported here.
cd /media/OLPCRoot/
sudo unzip /home/alecrim/kernel/olpc/olpc406_c11.zip
Password:
Archive: /home/alecrim/kernel/olpc/olpc406_c11.zip
creating: boot/
inflating: boot/q2c11.rom
inflating: boot/olpc.fth
inflating: boot/nand406.img
inflating: bzImage
Dismount the pen drive, plug it in the OLPC and turn it on. It’s going to auto install the new image. Be sure your OLPC is plug in the energy, it can not be interrupted during update.
Great success !!!!
OLPC uses a pen drive format to boot up the OS using the pen drive. This tutorial describe a way to format your pen drive and use the OLPC standard format. BE CAREFUL!!! You need to be sure about what you’re doing. Use the disk (/dev/sdb in my case) as parameter to fdisk. Dismount(umount /mount/point) all partitions of your pen drive.
sudo fdisk /dev/sdb
Inside fdisk you can see the menu options using m.
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition’s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Delete the partitions already present. You will miss all data present in the pen drive.
Command (m for help): d
Partition number (1-4): 1
Command (m for help): d
Partition number (1-4): 2
Command (m for help): d
Partition number (1-4): 3
Command (m for help): d
Selected partition 4
Create a new primary partition.
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1019, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1019, default 1019):
Using default value 1019
Specify partition type.
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): L
0 Empty 1e Hidden W95 FAT1 80 Old Minix be Solaris boot
1 FAT12 24 NEC DOS 81 Minix / old Lin bf Solaris
2 XENIX root 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 83 Linux c4 DRDOS/sec (FAT-
4 FAT16 <32m>
5 Extended 41 PPC PReP Boot 85 Linux extended c7 Syrinx
6 FAT16 42 SFS 86 NTFS volume set da Non-FS data
7 HPFS/NTFS 4d QNX4.x 87 NTFS volume set db CP/M / CTOS / .
8 AIX 4e QNX4.x 2nd part 88 Linux plaintext de Dell Utility
9 AIX bootable 4f QNX4.x 3rd part 8e Linux LVM df BootIt
a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e1 DOS access
b W95 FAT32 51 OnTrack DM6 Aux 94 Amoeba BBT e3 DOS R/O
c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS e4 SpeedStor
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi eb BeOS fs
f W95 Ext’d (LBA) 54 OnTrackDM6 a5 FreeBSD ee EFI GPT
10 OPUS 55 EZ-Drive a6 OpenBSD ef EFI (FAT-12/16/
11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f0 Linux/PA-RISC b
12 Compaq diagnost 5c Priam Edisk a8 Darwin UFS f1 SpeedStor
14 Hidden FAT16 <3>
16 Hidden FAT16 63 GNU HURD or Sys ab Darwin boot f2 DOS secondary
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fd Linux raid auto
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fe LANstep
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid ff BBT
1c Hidden W95 FAT3 75 PC/IX
Hex code (type L to list codes): 83
Turn it bootable
Command (m for help): a
Partition number (1-4): 1
List all partitions available.
Command (m for help): p
Disk /dev/sdb: 1050 MB, 1050934784 bytes
33 heads, 61 sectors/track, 1019 cylinders
Units = cylinders of 2013 * 512 = 1030656 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2069 1026223+ 83 Linux
Write modifications to disk.
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
After you partitioned the disk(pen drive), create the filesystem(mke2fs -j)
sudo mke2fs -j /dev/sdb1
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
128256 inodes, 256398 blocks
12819 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=264241152
8 block groups
32768 blocks per group, 32768 fragments per group
16032 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Define a label to the partition. This name is going to be used during
sudo e2label /dev/sdb1 OLPCRoot
Unplug and plug the pen drive. It’s going to be automatically mount on /media/OLPCRoot .
Hi all,
With Antonios’s help and Allan’s idea, we test a Minimo with OLPC. It runs great !!!
PS: Tutorial soon !!!
Regards,
Keppler.
Hi all,
I created a howto about debian in olpc and it’s published on http://wiki.debian.org/howto
Solved:
- Mouse (working)
Problems:
- WLAN (not working)
- xserver-xorg-video-amd – driver “amd” (not working)
Thanks in advance !!!!
INdT – Instituto Nokia de Tecnologia
OSMRC – Open Source Mobile research Center