Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
JeOS-efikamx
uboot-image-install
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File uboot-image-install of Package JeOS-efikamx
#!/bin/bash set -x diskname=$1 #========================================== # install MLO as raw #------------------------------------------ if [ -f "boot/MLO" ];then echo "Installing MLO..." opt="count=1 seek=1 conv=notrunc" if ! dd if=boot/MLO of=$diskname bs=128k $opt; then echo "Couldn't install MLO on $diskname" exit 1 fi # /.../ # To avoid any issues when parted leaves x86 boot code # in the MBR we better clear that part of the image # ---- dd if=/dev/zero of=$diskname bs=440 count=1 conv=notrunc fi #========================================== # install Origen SPL & u-boot as raw #------------------------------------------ if [ -f "boot/origen-spl.bin" ];then echo "Installing SPL..." if ! dd if=boot/origen-spl.bin of=$diskname seek=1 conv=notrunc; then echo "Couldn't install SPL on $diskname" exit 1 fi if ! dd if=boot/u-boot.bin of=$diskname seek=65 conv=notrunc; then echo "Couldn't install u-boot on $diskname" exit 1 fi fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor