(added initial version of ARM sysroot building howto) |
m (added note about system used during testing) |
||
| (3 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| - | ''' | + | '''Building ARM sysroot''' |
| + | |||
| + | These steps were tested on fresh Ubuntu 11.04 system. | ||
1. Add bellow line to /etc/apt/sources.list.d/meego-sdk.list | 1. Add bellow line to /etc/apt/sources.list.d/meego-sdk.list | ||
| - | deb http://repo.meego.com/MeeGo/tools/repos/ubuntu/10.10/ / | + | deb http://repo.meego.com/MeeGo/tools/repos/ubuntu/10.10/ / |
| - | + | Note: if needed import MeeGo GPG key: | |
| - | gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A | + | gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A |
| - | gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add - | + | gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add - |
2. Update available packages | 2. Update available packages | ||
| - | sudo apt-get update | + | sudo apt-get update |
3. Install required tools | 3. Install required tools | ||
| - | sudo apt-get install mic2 btrfs-tools qemu-arm-static | + | sudo apt-get install mic2 btrfs-tools qemu-arm-static |
Note: On Ubuntu 11.04 install qemu-kvm-extras-static instead of | Note: On Ubuntu 11.04 install qemu-kvm-extras-static instead of | ||
qemu-arm-static package | qemu-arm-static package | ||
| - | 4. Get latest available kickstart file | + | 4. Get latest available kickstart file to create ARM sysroot from http://repo.meego.com/MeeGo/builds/1.2.0.90/latest/builddata/image-configs/, e.g.: |
| - | wget http://repo.meego.com/MeeGo/builds/1.2.0.90/ | + | wget http://repo.meego.com/MeeGo/builds/1.2.0.90/1.2.0.90.12.20110809.2/builddata/image-configs/handset-armv7hl-madde-sysroot.ks |
| - | 5. Try to build | + | 5. Try to build tarball with ARM sysroot: |
| - | sudo mic-image-creator --format=fs --compress-disk-image=none --package=tar.bz2 --arch=armv7hl --save-kernel --config=handset-armv7hl-madde-sysroot.ks --release=1.2.0.90.12.20110809.2 | + | sudo mic-image-creator --format=fs --compress-disk-image=none --package=tar.bz2 --arch=armv7hl --save-kernel --config=handset-armv7hl-madde-sysroot.ks --release=1.2.0.90.12.20110809.2 |
| - | Troubleshooting: | + | '''Troubleshooting:''' |
| + | |||
Add parameters --verbose --debug if it will fail for any reason | Add parameters --verbose --debug if it will fail for any reason | ||
If you are behind a proxy, you can set it to mic by adding | If you are behind a proxy, you can set it to mic by adding | ||
| - | proxy=http://proxy.yourcompany.com:8080 | + | proxy=http://proxy.yourcompany.com:8080 |
| - | to /etc/mic2/mic2.conf. | + | to /etc/mic2/mic2.conf. |
If installation of packages fails for some reason then change package manager to yum: | If installation of packages fails for some reason then change package manager to yum: | ||
| Line 34: | Line 37: | ||
Disable vdso: | Disable vdso: | ||
| - | echo 0 | sudo tee /proc/sys/vm/vdso_enabled | + | echo 0 | sudo tee /proc/sys/vm/vdso_enabled |
If something goes wrong try to remove old meego bootstrap: | If something goes wrong try to remove old meego bootstrap: | ||
| - | rm -rf /var/cache/meego-bootstrap | + | rm -rf /var/cache/meego-bootstrap |
Building ARM sysroot
These steps were tested on fresh Ubuntu 11.04 system.
1. Add bellow line to /etc/apt/sources.list.d/meego-sdk.list
deb http://repo.meego.com/MeeGo/tools/repos/ubuntu/10.10/ /
Note: if needed import MeeGo GPG key:
gpg --keyserver pgpkeys.mit.edu --recv 0BC7BEC479FC1F8A gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
2. Update available packages
sudo apt-get update
3. Install required tools
sudo apt-get install mic2 btrfs-tools qemu-arm-static
Note: On Ubuntu 11.04 install qemu-kvm-extras-static instead of qemu-arm-static package
4. Get latest available kickstart file to create ARM sysroot from http://repo.meego.com/MeeGo/builds/1.2.0.90/latest/builddata/image-configs/, e.g.:
wget http://repo.meego.com/MeeGo/builds/1.2.0.90/1.2.0.90.12.20110809.2/builddata/image-configs/handset-armv7hl-madde-sysroot.ks
5. Try to build tarball with ARM sysroot:
sudo mic-image-creator --format=fs --compress-disk-image=none --package=tar.bz2 --arch=armv7hl --save-kernel --config=handset-armv7hl-madde-sysroot.ks --release=1.2.0.90.12.20110809.2
Troubleshooting:
Add parameters --verbose --debug if it will fail for any reason
If you are behind a proxy, you can set it to mic by adding
proxy=http://proxy.yourcompany.com:8080 to /etc/mic2/mic2.conf.
If installation of packages fails for some reason then change package manager to yum: --pkgmgr=yum
Disable vdso:
echo 0 | sudo tee /proc/sys/vm/vdso_enabled
If something goes wrong try to remove old meego bootstrap:
rm -rf /var/cache/meego-bootstrap