diff --git a/arch/arm/measuremore/scripts/flash_kernel b/arch/arm/measuremore/scripts/flash_kernel deleted file mode 100755 index 2acf7fd1a316ff246df58b4dffee70019142e81b..0000000000000000000000000000000000000000 --- a/arch/arm/measuremore/scripts/flash_kernel +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -SCRIPT_BASE=`dirname $0` -sam-ba -x $SCRIPT_BASE/flash_kernel.qml 2>&1 | tee $SCRIPT_BASE/flash_kernel.log diff --git a/arch/arm/measuremore/scripts/flash_kernel.qml b/arch/arm/measuremore/scripts/flash_kernel.qml deleted file mode 100644 index 52d1ef81fbc9800737d9592a8d70c43901f06ef4..0000000000000000000000000000000000000000 --- a/arch/arm/measuremore/scripts/flash_kernel.qml +++ /dev/null @@ -1,63 +0,0 @@ -import SAMBA 3.2 -import SAMBA.Connection.Serial 3.2 -import SAMBA.Device.SAMA5D3 3.2 - -SerialConnection { - - device: SAMA5D3Xplained { - config { - nandflash { - header: 0xc0902405 - } - } - } - - function initNand() { - /* Placeholder: Nothing to do */ - } - - function getEraseSize(size) { - /* get smallest erase block size supported by applet */ - var eraseSize - for (var i = 0; i <= 32; i++) { - eraseSize = 1 << i - if ((applet.eraseSupport & eraseSize) !== 0) - break; - } - eraseSize *= applet.pageSize - - /* round up file size to erase block size */ - return (size + eraseSize - 1) & ~(eraseSize - 1) - } - - function eraseWrite(offset, filename, bootfile) { - /* get file size */ - var file = File.open(filename, false) - var size = file.size() - file.close() - - applet.erase(offset, getEraseSize(size)) - applet.write(offset, filename, bootfile) - } - - onConnectionOpened: { - var dtbFileName = "at91-sama5d3_xplained.dtb" - var ubootEnvFileName = "u-boot-env.bin" - - // initialize Low-Level applet - print("-I- === Initilize low level (system clocks) ===") - initializeApplet("lowlevel") - - // intialize extram applet (needed for sam9) - print("-I- === Initialize extram ===") - initializeApplet("extram") - - print("-I- === Initialize nandflash access ===") - initializeApplet("nandflash") - - print("-I- === Load Kernel image ===") - eraseWrite(0x00200000, "../boot/zImage") - - print("-I- === Done. ===") - } -}