emcraftsystems / u-boot Goto Github PK
View Code? Open in Web Editor NEWU-Boot for Cortex-M3 and Cortex-M4
Home Page: http://www.emcraft.com
License: Other
U-Boot for Cortex-M3 and Cortex-M4
Home Page: http://www.emcraft.com
License: Other
This is the source tree of U-Boot, a popular boot loader for embedded devices. U-Boot was developed by DENX Software Engineering (www.denx.de). This particular version of U-Boot is maintained by Emcraft Systems and supports several Cortex-M3 and Cortex-M4 based MCUs. A complete list of Cortex-M MCUs and boards supported by this version of U-Boot is available at http://www.emcraft.com. If you want to contribute code to this source tree, please email your patches to [email protected].
Only support 470x272 when I setting other resolution, I find out the key is in arch/arm/mach-imxrt105x/clock.c, it seems be fixed to 470x272 official panel setting, please provide a way to change it, thanks!
I was attempting to build u-boot
with Sourcery CodeBench Lite ARM EABI version 2013.11. GCC complains as following:
arm-none-eabi-gcc -g -Os -g2 -mthumb -mcpu=cortex-m3 -fsigned-char -O2 -fno-builtin-puts -fno-common -ffixed-r8 -D__KERNEL__ -I/tmp/u-boot/include -fno-builtin -ffreestanding -isystem /usr/local/csl/arm-2013.11/bin/../lib/gcc/arm-none-eabi/4.8.1/include -pipe -DCONFIG_ARM -D__ARM__ -DCONFIG_MEM_NVM_BASE="0x00000000" -DCONFIG_MEM_NVM_LEN="(1024 * 1024 * 2)" -DCONFIG_MEM_NVM_UBOOT_OFF="0x0" -DCONFIG_MEM_RAM_BASE="0x20000000" -DCONFIG_MEM_RAM_LEN="(20 * 1024)" -DCONFIG_MEM_RAM_BUF_LEN="(88 * 1024)" -DCONFIG_MEM_MALLOC_LEN="(16 * 1024)" -DCONFIG_MEM_STACK_LEN="(4 * 1024)" -I/tmp/u-boot/cpu/arm_cortexm3 -Wall -Wstrict-prototypes -fno-stack-protector -o cmd_cptf.o cmd_cptf.c -c
In file included from /usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include/stdint.h:11:0,
from /usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include-fixed/sys/cdefs.h:54,
from /usr/local/csl/arm-2013.11/arm-none-eabi/include/string.h:12,
from cmd_cptf.c:23:
/usr/local/csl/arm-2013.11/lib/gcc/arm-none-eabi/4.8.1/include/stdint-gcc.h:40:24: error: conflicting types for 'int32_t'
typedef __INT32_TYPE__ int32_t;
^
In file included from /tmp/u-boot/include/common.h:39:0,
from cmd_cptf.c:21:
/tmp/u-boot/include/linux/types.h:102:17: note: previous declaration of 'int32_t' was here
typedef __s32 int32_t;
The workaround is to remove #include <string.h>
in file cpu/arm_cortexm3/cmd_cptf.c
.
When I try to bebug this code using gdb, I found that there isn't debug symbol in it, could you kindly tell me how to add it~
Hello...
i can successfully run linux(hangs on starting kernel..) on TWR-K70F120M REV 1 Board using branch 1.3.2 but i cant run linux with any branchs after that commit. Nand Flash errors everytime occurring when u-boot loading. I cant find any solutions.
U-Boot 2010.03 (Sep 20 2017 - 04:37:33)
CPU : Freescale Kinetis series (Cortex-M4)
Freqs: SYSTICK=120MHz,CCLK=120MHz,PCLK=60MHz,MACCLK=50MHz
Board: Freescale TWR-K70F120M rev 1
DRAM: 128 MB
NAND: 256 MiB
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_read_bbt: Bad block at 0x000000100000
nand_read_bbt: Bad block at 0x000000120000
UNHANDLED EXCEPTION: HARD FAULT
R0 = 00000000 R1 = 87f616a0
R2 = 00020008 R3 = 00020009
R12 = 000001ff LR = 00008045
PC = 0000c936 PSR = 81000000
Just now, I almost built the latest emcraft u-boot for cortex m3 using gcc 5.2 with just a few changes:
Since the u-boot does not run after Linux starts, building u-boot with the more recent toolchain is not super-important. It's just that being able to build EVERYTHING within Buildroot (using 2015.11.rc3), in 1-go, would be quite clean.
Hi,I'm building u-boot for the actel a2f500 dev brd, and I get the following error:
arm-none-eabi-gcc -E -g -Os -g2 -mthumb -mcpu=cortex-m3 -fsigned-char -O2 -fno-builtin-puts -fno-common -ffixed-r8 -D__KERNEL__ -I/home/mzee/kernel/uboot/EmcraftSystems-u-boot-3f592e1/include -fno-builtin -ffreestanding -isystem /home/mzee/kernel/actel/toolchains/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/include -pipe -DCONFIG_ARM -D__ARM__ -DCONFIG_MEM_NVM_BASE= -DCONFIG_MEM_NVM_LEN= -DCONFIG_MEM_RAM_BASE= -DCONFIG_MEM_RAM_LEN= -DCONFIG_MEM_RAM_BUF_LEN= -DCONFIG_MEM_MALLOC_LEN= -DCONFIG_MEM_STACK_LEN= -I/home/mzee/kernel/uboot/EmcraftSystems-u-boot-3f592e1/cpu/arm_cortexm3 -include /home/mzee/kernel/uboot/EmcraftSystems-u-boot-3f592e1/include/u-boot/u-boot.lds.h -ansi -D__ASSEMBLY__ -P - </home/mzee/kernel/uboot/EmcraftSystems-u-boot-3f592e1/cpu/arm_cortexm3/u-boot.lds >u-boot.lds
UNDEF_SYM=arm-none-eabi-objdump -x board/actel/a2f-actel-dev-brd/liba2f-actel-dev-brd.a lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.a cpu/arm_cortexm3/libarm_cortexm3.a cpu/arm_cortexm3/a2f/liba2f.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/usb/phy/libusb_phy.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a | sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq
; cd /home/mzee/kernel/uboot/EmcraftSystems-u-boot-3f592e1 && arm-none-eabi-ld -Bstatic -T u-boot.lds $UNDEF_SYM cpu/arm_cortexm3/start.o --start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.a cpu/arm_cortexm3/libarm_cortexm3.a cpu/arm_cortexm3/a2f/liba2f.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.a drivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.a drivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.a drivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.a drivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/pci/libpci.a drivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.a drivers/rtc/librtc.a drivers/serial/libserial.a drivers/twserial/libtws.a drivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.a drivers/usb/musb/libusb_musb.a drivers/usb/phy/libusb_phy.a drivers/video/libvideo.a drivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a api/libapi.a post/libpost.a board/actel/a2f-actel-dev-brd/liba2f-actel-dev-brd.a --end-group -L /home/mzee/kernel/actel/toolchains/arm-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/thumb2 -lgcc -Map u-boot.map -o u-boot
arm-none-eabi-ld:u-boot.lds:7: syntax error
make: *** [u-boot] Error 1
What could be the source
Please help
Thanks
Hello. I'm currently using your u-boot version on our boards. But i cant find any method for debugging u-boot using codewarrior or eclipse. what tools do you use to debug u-boot for k70-som or k70-twr? .thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.