11.4Smatt/* $Id: bootimx23.bd,v 1.4 2013/10/07 17:36:40 matt Exp $ */ 21.1Sjkunz 31.1Sjkunz/* 41.1Sjkunz * elftosb command file. 51.1Sjkunz * 61.1Sjkunz * Generate boot image by issuing: 71.1Sjkunz * $ elftosb -V -c bootimx23.bd -z -o bootimx23.sb 81.1Sjkunz * 91.1Sjkunz * Verify generated boot image: 101.1Sjkunz * $ sbtool -x 2 bootimx23.sb 111.1Sjkunz * 121.1Sjkunz */ 131.1Sjkunz 141.1Sjkunzoptions { 151.1Sjkunz toolset = "GNU"; 161.1Sjkunz} 171.1Sjkunz 181.1Sjkunzsources { 191.4Smatt # elf(3) binary. 201.2Sjkunz boot_prep="./bootimx23"; 211.4Smatt # objcopy(1) generated .bin 221.4Smatt netbsd="./netbsd.bin"; 231.1Sjkunz} 241.1Sjkunz 251.1Sjkunzsection (0) { 261.1Sjkunz // Initialize power, clocks and DRAM. 271.1Sjkunz load boot_prep; 281.1Sjkunz call boot_prep; 291.1Sjkunz 301.3Sjkunz // Load kernel to DRAM. 311.4Smatt load netbsd > 0x40000000; 321.4Smatt jump 0x40000000; 331.1Sjkunz} 34