Added uboot script to n900

This commit is contained in:
Martijn Braam 2017-06-10 01:38:46 +02:00
parent a5583d512d
commit 565f8fc6f1
3 changed files with 25 additions and 7 deletions

View File

@ -5,14 +5,15 @@ pkgdesc="Nokia N900"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-nokia-rx51"
makedepends=""
depends="linux-nokia-rx51 uboot-tools"
makedepends="uboot-tools"
install=""
subpackages=""
source="deviceinfo initfs-hook.sh profile.sh"
source="deviceinfo initfs-hook.sh profile.sh uboot-script.cmd"
options="!check"
build() {
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n postmarketos -d "$srcdir/uboot-script.cmd" "$srcdir/boot.scr"
return 0
}
@ -23,8 +24,11 @@ package() {
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
install -D -m644 "$srcdir"/profile.sh \
"$pkgdir"/etc/profile.d/00-$pkgname.sh
#install -D -m644 "$srcdir"/boot.scr \
# "$pkgdir"/boot/boot.scr
}
sha512sums="b002e3b7f8e98289f68ac563e5ba010900ce1f850254a73998f86df3993a32670511bc26ad584e626d82592343a2ec6767816fd3d1a186ecedcf1a7103bb87d5 deviceinfo
sha512sums="52ae4fc3317774fc6e668188857e9eb2c80a4612fc92b895b2bf78d2d377a6f6fe387be5f003cf98ac14c31aaf4a2677713b01f3cddac03cf34ce5c2b83e0b72 deviceinfo
8590967fa10388a890fdfafdb1070b9ab22dc89e06a3a8834806c772191e3b67de7b914b0d68e5ddf581cee715cb90f3f24abcb8762c415ff328c6da23e55d52 initfs-hook.sh
c3d0182161c33047e0af4fd7cc557037e10380896a771446f055a13813e50e4e6c9d5992de7b275a8373a053cca02cb96bcb50c732709a2e9909f903b5fba249 profile.sh"
c3d0182161c33047e0af4fd7cc557037e10380896a771446f055a13813e50e4e6c9d5992de7b275a8373a053cca02cb96bcb50c732709a2e9909f903b5fba249 profile.sh
011e85537f497c2888f876a63bec13e3a2853a5047a0692515d6108cee2a2b90e70fb234f9c0e67a11d64abd3a15cade0864d725548722df910d6d1cbb1216e4 uboot-script.cmd"

View File

@ -11,8 +11,8 @@ deviceinfo_nonfree="????"
deviceinfo_dtb=""
deviceinfo_modules=""
deviceinfo_modules_initfs=""
deviceinfo_external_disk="false"
deviceinfo_external_disk_install="false"
deviceinfo_external_disk="true"
deviceinfo_external_disk_install="true"
deviceinfo_flash_methods="0xFFFF"
deviceinfo_generate_legacy_uboot_initfs="true"
deviceinfo_arch="armhf"

View File

@ -0,0 +1,14 @@
setenv mmcnum 0
setenv mmcpart 1
setenv mmctype ext2
setenv setup_omap_atag 1
setenv bootargs init=/init.sh rw console=tty0 console=tty02 omapfb_vram=7M omapfb.mode=lcd:848x480-16 nokia-modem.pm=0
setenv mmckernfile /uImage
setenv mmcinitrdfile /uInitrd
setenv mmcscriptfile
echo Loading initramfs
run initrdload
echo Loading kernel
run kernload
echo Booting kernel
run kerninitrdboot