|
BeagleSoftCompile
Beagle Board Software Compilation Procedure.
Beagle Board Software Compilation Options and ProcedureRelated Links: Beagle Software Booting Procedure Compiling x-loader Compiling x-loader for NAND booting /* For X-loader to be flashed on to NAND disable the below macro */
//#define CFG_CMD_MMC 1 make CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap3530beagle_config
make CROSS_COMPILE=arm-none-linux-gnueabi-File named "x-load.bin" will be generated
./signGP x-load.bin Prebuilt Image for testing (Save this as x-load.bin.ift) Compiling x-loader for MMC booting /* For X-loader to be flashed on to NAND disable the below macro */
#define CFG_CMD_MMC 1 make CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap3530beagle_config
make CROSS_COMPILE=arm-none-linux-gnueabi-File named "x-load.bin" will be generated
./signGP x-load.bin Prebuilt Image for testing (Save this as MLO) Compiling u-boot Compiling u-boot for Flashing NAND automatically Un comment the below CONFIG_BOOTCMD
#define CONFIG_BOOTCOMMAND \
"mmcinit;fatload mmc 0 0x80200000 x-load.bin.ift;\
nand unlock;nand ecc hw;nand erase 0 80000;nand write.i 0x80200000 0 80000;\
fatload mmc 0 0x80200000 flash-uboot.bin; nand unlock;\
nand ecc sw;nand erase 80000 160000; nand write.i 0x80200000 80000 160000;\0"
Comment the below line as shown below
/* #define CONFIG_BOOTCOMMAND "\0" */
make CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap3530beagle_config
make CROSS_COMPILE=arm-none-linux-gnueabi-File named "u-boot.bin" will be generated Prebuilt Image for testing (Save this as u-boot.bin) Compiling u-boot for regular Kernel Booting Comment the below CONFIG_BOOTCOMMAND macro
/*
#define CONFIG_BOOTCOMMAND \
"mmcinit;fatload mmc 0 0x80200000 x-load.bin.ift;\
nand unlock;nand ecc hw;nand erase 0 80000;nand write.i 0x80200000 0 80000;\
fatload mmc 0 0x80200000 flash-uboot.bin; nand unlock;\
nand ecc sw;nand erase 80000 160000; nand write.i 0x80200000 80000 160000;\0"
*/
Un-comment CONFIG_BOOTCOMMAND macro as shown below
#define CONFIG_BOOTCOMMAND "\0" make CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap3530beagle_config
make CROSS_COMPILE=arm-none-linux-gnueabi-File named "u-boot.bin" will be generated Prebuilt Image for testing (Save this as u-boot.bin for booting over MMC) (Save the same as flash-uboot.bin in MMC for flashing automatically to NAND) Compiling Kernel
make CROSS_COMPILE=arm-none-linux-gnueabi- distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap3_beagle_defconfig
make CROSS_COMPILE=arm-none-linux-gnueabi- uImage File named "uImage" will be generated in arch/arm/boot directory Prebuilt Kernel Image for testing (Save this as uImage) |
Sign in to add a comment
I'd build the ethernet gadget module (omap_udc.ko & g_ether.ko) but I can not insert these modules, what wrong ???
$ insmod omap_udc.ko $ insmod g_ether.ko $ insmod: cannot insert 'g_hid.ko': No such device
go to omap_udc.c and I found the regiter function (usb_gadget_register_driver()) break down at the following line :
/ basic sanity tests / if (!udc)
I used printk function to find out this bug and found that the omap_udc_probe() can not be called here! ( just only init function is called).
I want to use omap_udc.c to develop my own HID keyboard and mouse gadget devices! musb_hdrc seem to be impossible for this purpose !!!
How can I configure the kernel that runs all phrephals default config doesn't running leds,LCDs,network cards...