# scripts **Repository Path**: chise0519/scripts ## Basic Information - **Project Name**: scripts - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-05 - **Last Updated**: 2025-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1. don't install 'lsb-release' on Archlinux, it will result in different host name, and then you can't use sstate cache on server 2. don't install 'boost-build' on host, it will result in host arch boost libs, and will fail when package it. ######################################################################### ########################### section 1 compile ####################### ######################################################################### variables: OPTIMUS_DIR = "???" store the build system scripts. BUILD_DIR = "???" the build directory, all outputs in it. MACHINE_NAME ?= "arm11plf" the machine name, 'arm9plf' or 'arm11plf'. IMPORTANT: there is some notes following every step, please check it first. 1. download scripts repository git clone git://dev-srv/optimus/scripts.git ${OPTIMUS_DIR}/scripts if you can't connect the dev-srv server, you should use the tarball. 2. create compile directory (auto download other repository) ${OPTIMUS_DIR}/scripts/setupbuilddir -um ${MACHINE_NAME} ${BUILD_DIR} if you can't connect the dev-srv server, drop the -u option, ie. ${OPTIMUS_DIR}/scripts/setupbuilddir -m ${MACHINE_NAME} ${BUILD_DIR} 3. compile image ${BUILD_DIR}/bbext fusion-splicer-image if you can't connect the dev-srv server, this step need some hours, be patient. and before that, you should modify the file: ${OPTIMUS_DIR}/meta-jilong/conf/distro/optimus.conf delete following two lines in it: SOURCE_MIRROR_URL = "http://dev-srv/optimus/sources" INHERIT += "own-mirrors" and then... it still may fail for lack of some package's source. e.g. exe-model plf-drv reg-tools ... for everyone in that list, you can find it in meta-jilong, and then delete corresponding folder. and then... still FAIL!!! WTFP? because we installed some packages in above list, all you neeed to do is delete the corresponding line in ${OPTIMUS_DIR}/meta-jilong/recipes-extended/images/fusion-splicer-image.bb success time! GOOD LUCK! 4. make cross environment ${BUILD_DIR}/bbext meta-ide-qte-support if you can't connect the dev-srv server, this step need some hours, be patient. NOTE: all output images are under ${BUILD_DIR}/tmp/deploy/images. fusion-splicer-image-${MACHINE_NAME}.tar.bz2 rootfs with tar.bz2 format fusion-splicer-image-${MACHINE_NAME}.ubifs rootfs with ubifs format (used by barebox on arm9plf) fusion-splicer-image-${MACHINE_NAME}.ext4.gz.u-boot rootfs used by uboot (installation image used on arm11plf) barebox-${MACHINE_NAME}.bin bootloader (barebox) zImage-${MACHINE_NAME}.bin kernel (zImage format) ######################################################################### ########################### section 2 flash ####################### ######################################################################### flash the images into nand use jlink/openjtag: you can use: openocd + telnet + minicom. NOTE: 1. the is the size of corresponding file, unit: byte 2. because the difference of jlink/openjtag, here skip the detail of download step, you should follow your jtag adapter's operation manual. 3. this section is only valid for arm1plf, if you use arm11plf, just skip it. step 1. flash barebox 1.1 download barebox to sdram: 0x33800000 1.2 download barebox to sdram: 0x33e00000 1.3 skip to address 0x33e00000 to execute the barebox 1.4 enter barebox's shell erase /dev/nand0.barebox memcpy -d /dev/nand0.barebox 0x33800000 0 step 2. flash kernel 2.1 enter barebox's shell 2.2 download kernel to sdram: 0x33000000 2.3 in barebox's shell: erase /dev/nand0.kernel memcpy -d /dev/nand0.kernel 0x33000000 0 step 3. flash rootfs 3.1 enter barebox's shell 3.2 download rootfs to sdram: 0x30000000 3.3 in barebox's shell: erase /dev/nand0.fs ubiattach /dev/nand0.fs ubimkvol /dev/ubi0 arm9plf-rootfs 0 memcpy -d /dev/ubi0.arm9plf-rootfs 0x30000000 0