Date: Thu, 10 Apr 2014 10:16:13 +0800 From: Xuebing Wang <xbing6@gmail.com> To: freebsd-arm@freebsd.org, Tim Kientzle <kientzle@freebsd.org> Subject: [Patch v1] [BeagleBone Black] port the latest u-boot-2014-01 Message-ID: <5345FEED.1040604@gmail.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080405020601010403050600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The latest u-boot is 2014-01. With the latest u-boot, BeagleBone Black CPU runs at 1GHz. I run some benchmark with "ubench -c -s", the number is increased from 5186 to 9588. Attached are the 3 patches for ports: sysutils/u-boot-beaglebone-eabi Thanks. ================================================== Current u-boot: U-Boot 2013.04 (Mar 24 2014 - 07:32:45) root@beaglebone:~ # ubench -c -s Unix Benchmark Utility v.0.3 FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r263665: Mon Mar 24 07:27:38 UTC 2014 root@grind.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm Ubench Single CPU: 5186 (0.40s) ================================================== u-boot-2014-01: root@beaglebone:~ # ubench -c -s FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r263665: Mon Mar 24 07:27:38 UTC 2014 root@grind.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm Ubench Single CPU: 9588 (0.41s) -- Thanks, Xuebing Wang --------------080405020601010403050600 Content-Type: text/plain; charset=UTF-8; name="patch.add-u-boot-patches" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch.add-u-boot-patches" ------------------------------------------------------------------------ r4 | root | 2014-04-10 09:55:56 +0800 (Thu, 10 Apr 2014) | 5 lines Add the patches for u-boot into folder files/ Submitted by: Xuebing Wang <xbing6@gmail.com> Sponsored by: Tutamen, LLC Index: files/patch-include_configs_ti_am335x_common.h =================================================================== --- files/patch-include_configs_ti_am335x_common.h (revision 0) +++ files/patch-include_configs_ti_am335x_common.h (revision 4) @@ -0,0 +1,23 @@ +--- include/configs/ti_am335x_common.h.orig 2014-04-10 09:22:45.000000000 +0800 ++++ include/configs/ti_am335x_common.h 2014-04-10 09:23:01.000000000 +0800 +@@ -48,10 +48,6 @@ + */ + #define CONFIG_SYS_BOOTCOUNT_ADDR 0x44E3E000 + +-/* Enable the HW watchdog, since we can use this with bootcount */ +-#define CONFIG_HW_WATCHDOG +-#define CONFIG_OMAP_WATCHDOG +- + /* + * SPL related defines. The Public RAM memory map the ROM defines the + * area between 0x402F0400 and 0x4030B800 as a download area and +@@ -62,9 +58,6 @@ + #define CONFIG_SPL_TEXT_BASE 0x402F0400 + #define CONFIG_SPL_MAX_SIZE (0x4030B800 - CONFIG_SPL_TEXT_BASE) + +-/* Enable the watchdog inside of SPL */ +-#define CONFIG_SPL_WATCHDOG_SUPPORT +- + /* + * Since SPL did pll and ddr initialization for us, + * we don't need to do it twice. Index: files/patch-include_configs_am335x_evm.h =================================================================== --- files/patch-include_configs_am335x_evm.h (revision 0) +++ files/patch-include_configs_am335x_evm.h (revision 4) @@ -0,0 +1,84 @@ +--- include/configs/am335x_evm.h.orig 2014-04-10 09:14:56.000000000 +0800 ++++ include/configs/am335x_evm.h 2014-04-10 09:15:36.000000000 +0800 +@@ -18,6 +18,12 @@ + + #include <configs/ti_am335x_common.h> + ++#ifndef CONFIG_SPL_BUILD ++#define CONFIG_CMD_ELF ++#define CONFIG_API ++#define CONFIG_SYS_MMC_MAX_DEVICE 2 ++#endif ++ + #define MACH_TYPE_TIAM335EVM 3589 /* Until the next sync */ + #define CONFIG_MACH_TYPE MACH_TYPE_TIAM335EVM + +@@ -54,14 +60,14 @@ + + #ifndef CONFIG_SPL_BUILD + #define CONFIG_EXTRA_ENV_SETTINGS \ +- "loadaddr=0x80200000\0" \ +- "fdtaddr=0x80F80000\0" \ ++ "loadaddr=0x88000000\0" \ ++ "fdtaddr=0x80000100\0" \ ++ "bootfile=bbubldr\0" \ + "fdt_high=0xffffffff\0" \ + "boot_fdt=try\0" \ + "rdaddr=0x81000000\0" \ + "bootpart=0:2\0" \ + "bootdir=/boot\0" \ +- "bootfile=zImage\0" \ + "fdtfile=undefined\0" \ + "console=ttyO0,115200n8\0" \ + "optargs=\0" \ +@@ -92,8 +98,8 @@ + "root=/dev/nfs " \ + "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \ + "ip=dhcp\0" \ +- "bootenv=uEnv.txt\0" \ +- "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ ++ "bootenv=bb-uEnv.txt\0" \ ++ "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ + "importbootenv=echo Importing environment from mmc ...; " \ + "env import -t $loadaddr $filesize\0" \ + "ramargs=setenv bootargs console=${console} " \ +@@ -101,21 +107,21 @@ + "root=${ramroot} " \ + "rootfstype=${ramrootfstype}\0" \ + "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \ +- "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \ +- "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \ +- "mmcloados=run mmcargs; " \ ++ "loadimage=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \ ++ "loadfdt=fatload mmc ${mmcdev} ${fdtaddr} ${fdtfile};fdt addr ${fdtaddr}\0" \ ++ "mmcloados=" \ + "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ + "if run loadfdt; then " \ +- "bootz ${loadaddr} - ${fdtaddr}; " \ ++ "bootelf ${loadaddr};" \ + "else " \ + "if test ${boot_fdt} = try; then " \ +- "bootz; " \ ++ "bootelf ${loadaddr};" \ + "else " \ + "echo WARN: Cannot load the DT; " \ + "fi; " \ + "fi; " \ + "else " \ +- "bootz; " \ ++ "bootelf ${loadaddr};" \ + "fi;\0" \ + "mmcboot=mmc dev ${mmcdev}; " \ + "if mmc rescan; then " \ +@@ -149,9 +155,9 @@ + "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \ + "findfdt="\ + "if test $board_name = A335BONE; then " \ +- "setenv fdtfile am335x-bone.dtb; fi; " \ ++ "setenv fdtfile bbone.dtb; fi; " \ + "if test $board_name = A335BNLT; then " \ +- "setenv fdtfile am335x-boneblack.dtb; fi; " \ ++ "setenv fdtfile bboneblk.dtb; fi; " \ + "if test $board_name = A33515BB; then " \ + "setenv fdtfile am335x-evm.dtb; fi; " \ + "if test $board_name = A335X_SK; then " \ Index: files/patch-common_env_common.c =================================================================== --- files/patch-common_env_common.c (revision 0) +++ files/patch-common_env_common.c (revision 4) @@ -0,0 +1,15 @@ +--- common/env_common.c.orig 2014-04-10 09:21:17.000000000 +0800 ++++ common/env_common.c 2014-04-10 09:21:41.000000000 +0800 +@@ -59,9 +59,9 @@ + + const uchar *env_get_addr(int index) + { +- if (gd->env_valid) +- return (uchar *)(gd->env_addr + index); +- else ++// if (gd->env_valid) ++// return (uchar *)(gd->env_addr + index); ++// else + return &default_environment[index]; + } + Index: files/patch-include_configs_ti_armv7_common.h =================================================================== --- files/patch-include_configs_ti_armv7_common.h (revision 0) +++ files/patch-include_configs_ti_armv7_common.h (revision 4) @@ -0,0 +1,11 @@ +--- include/configs/ti_armv7_common.h.orig 2014-04-10 09:19:02.000000000 +0800 ++++ include/configs/ti_armv7_common.h 2014-04-10 09:19:18.000000000 +0800 +@@ -197,7 +197,7 @@ + + /* FAT sd card locations. */ + #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1 +-#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" ++#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "bb-uboot.img" + + #ifdef CONFIG_SPL_OS_BOOT + #define CONFIG_SYS_SPL_ARGS_ADDR 0x80F80000 ------------------------------------------------------------------------ --------------080405020601010403050600 Content-Type: text/plain; charset=UTF-8; name="patch.Makefile-distinfo" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch.Makefile-distinfo" Index: Makefile =================================================================== --- Makefile (revision 349971) +++ Makefile (working copy) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= beaglebone -PORTVERSION= 2013.04 +PORTVERSION= 2014.01 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/ \ ${MASTER_SITE_LOCAL} @@ -8,7 +8,7 @@ MASTER_SITE_SUBDIR= kientzle PKGNAMEPREFIX= u-boot- PKGNAMESUFFIX= -eabi -DISTNAME= u-boot-2013.04 +DISTNAME= u-boot-2014.01 MAINTAINER= kientzle@FreeBSD.org COMMENT= U-Boot loader for BeagleBone and BeagleBone Black Index: distinfo =================================================================== --- distinfo (revision 349971) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (u-boot-2013.04.tar.bz2) = 4150e5a4480707c55a8d5b4570262e43af68d8ed3bdc0a433d8e7df47989a69e -SIZE (u-boot-2013.04.tar.bz2) = 9837387 +SHA256 (u-boot-2014.01.tar.bz2) = cdaf8c81583abfa2e73da46cfcf87b0cbd9741d9aa766f3b905376e3652d543d +SIZE (u-boot-2014.01.tar.bz2) = 10180625 --------------080405020601010403050600 Content-Type: text/plain; charset=UTF-8; name="patch.remove-files" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch.remove-files" Index: files/patch-api_Makefile =================================================================== --- files/patch-api_Makefile (revision 350678) +++ files/patch-api_Makefile (working copy) @@ -1,11 +0,0 @@ ---- api/Makefile.orig 2013-04-19 09:25:43.000000000 -0500 -+++ api/Makefile 2013-05-16 17:14:54.000000000 -0500 -@@ -24,7 +24,7 @@ - - LIB = $(obj)libapi.o - --COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \ -+COBJS-$(CONFIG_API) += api.o api_display.o api_storage.o \ - api_platform-$(ARCH).o - - COBJS := $(COBJS-y) Index: files/patch-api_api.c =================================================================== --- files/patch-api_api.c (revision 350678) +++ files/patch-api_api.c (working copy) @@ -1,62 +0,0 @@ ---- api/api.c.orig 2013-04-19 09:25:43.000000000 -0500 -+++ api/api.c 2013-05-16 17:04:11.000000000 -0500 -@@ -226,8 +226,8 @@ - debugf("RESTART ENUM\n"); - - /* net device enumeration first */ -- if (dev_enum_net(di)) -- return 0; -+ //if (dev_enum_net(di)) -+ //return 0; - } - - /* -@@ -264,8 +264,8 @@ - if (di->type & DEV_TYP_STOR) - err = dev_open_stor(di->cookie); - -- else if (di->type & DEV_TYP_NET) -- err = dev_open_net(di->cookie); -+ // else if (di->type & DEV_TYP_NET) -+ // err = dev_open_net(di->cookie); - else - err = API_ENODEV; - -@@ -295,8 +295,8 @@ - if (di->type & DEV_TYP_STOR) - err = dev_close_stor(di->cookie); - -- else if (di->type & DEV_TYP_NET) -- err = dev_close_net(di->cookie); -+ // else if (di->type & DEV_TYP_NET) -+ // err = dev_close_net(di->cookie); - else - /* - * In case of unknown device we cannot change its state, so -@@ -364,8 +364,8 @@ - */ - return API_ENODEV; - -- else if (di->type & DEV_TYP_NET) -- err = dev_write_net(di->cookie, buf, *len); -+ // else if (di->type & DEV_TYP_NET) -+ // err = dev_write_net(di->cookie, buf, *len); - else - err = API_ENODEV; - -@@ -436,6 +436,7 @@ - - *act_len_stor = dev_read_stor(di->cookie, buf, *len_stor, *start); - -+#if 0 - } else if (di->type & DEV_TYP_NET) { - - /* 3. arg points to the var with length of packet to read */ -@@ -452,6 +453,7 @@ - - *act_len_net = dev_read_net(di->cookie, buf, *len_net); - -+#endif - } else - return API_ENODEV; - Index: files/patch-examples_api_Makefile =================================================================== --- files/patch-examples_api_Makefile (revision 350678) +++ files/patch-examples_api_Makefile (working copy) @@ -1,11 +0,0 @@ ---- examples/api/Makefile.orig 2013-04-19 09:25:43.000000000 -0500 -+++ examples/api/Makefile 2013-05-16 17:05:38.000000000 -0500 -@@ -69,7 +69,7 @@ - ######################################################################### - - $(OUTPUT): $(OBJS) -- $(LD) -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS) -+ $(LD) -static -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS) - $(OBJCOPY) -O binary $@ $(OUTPUT).bin 2>/dev/null - - # Rule to build generic library C files Index: files/patch-include_configs_am335x_evm.h =================================================================== --- files/patch-include_configs_am335x_evm.h (revision 350678) +++ files/patch-include_configs_am335x_evm.h (working copy) @@ -1,236 +0,0 @@ ---- include/configs/am335x_evm.h.orig 2013-04-19 09:25:43.000000000 -0500 -+++ include/configs/am335x_evm.h 2013-05-16 17:08:37.000000000 -0500 -@@ -20,6 +20,12 @@ - - #include <asm/arch/omap.h> - -+#ifndef CONFIG_SPL_BUILD -+#define CONFIG_CMD_ELF -+#define CONFIG_API -+#define CONFIG_SYS_MMC_MAX_DEVICE 2 -+#endif -+ - #define CONFIG_DMA_COHERENT - #define CONFIG_DMA_COHERENT_SIZE (1 << 20) - -@@ -53,94 +59,24 @@ - #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG - #ifndef CONFIG_SPL_BUILD - #define CONFIG_EXTRA_ENV_SETTINGS \ -- "loadaddr=0x80200000\0" \ -- "fdtaddr=0x80F80000\0" \ -- "fdt_high=0xffffffff\0" \ -- "rdaddr=0x81000000\0" \ -- "bootdir=/boot\0" \ -- "bootfile=uImage\0" \ -+ "loadaddr=0x88000000\0" \ -+ "fdtaddr=0x80000100\0" \ -+ "bootfile=bbubldr\0" \ - "fdtfile=\0" \ -- "console=ttyO0,115200n8\0" \ -- "optargs=\0" \ -- "mtdids=" MTDIDS_DEFAULT "\0" \ -- "mtdparts=" MTDPARTS_DEFAULT "\0" \ -- "dfu_alt_info_mmc=" DFU_ALT_INFO_MMC "\0" \ -- "dfu_alt_info_emmc=rawemmc mmc 0 3751936\0" \ -- "dfu_alt_info_nand=" DFU_ALT_INFO_NAND "\0" \ - "mmcdev=0\0" \ -- "mmcroot=/dev/mmcblk0p2 ro\0" \ -- "mmcrootfstype=ext4 rootwait\0" \ -- "bootpart=0:2\0" \ -- "nandroot=ubi0:rootfs rw ubi.mtd=7,2048\0" \ -- "nandrootfstype=ubifs rootwait=1\0" \ -- "nandsrcaddr=0x280000\0" \ -- "nandimgsize=0x500000\0" \ -- "rootpath=/export/rootfs\0" \ -- "nfsopts=nolock\0" \ -- "static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}" \ -- "::off\0" \ -- "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \ -- "ramrootfstype=ext2\0" \ -- "mmcargs=setenv bootargs console=${console} " \ -- "${optargs} " \ -- "root=${mmcroot} " \ -- "rootfstype=${mmcrootfstype}\0" \ -- "nandargs=setenv bootargs console=${console} " \ -- "${optargs} " \ -- "root=${nandroot} " \ -- "rootfstype=${nandrootfstype}\0" \ -- "spiroot=/dev/mtdblock4 rw\0" \ -- "spirootfstype=jffs2\0" \ -- "spisrcaddr=0xe0000\0" \ -- "spiimgsize=0x362000\0" \ -- "spibusno=0\0" \ -- "spiargs=setenv bootargs console=${console} " \ -- "${optargs} " \ -- "root=${spiroot} " \ -- "rootfstype=${spirootfstype}\0" \ -- "netargs=setenv bootargs console=${console} " \ -- "${optargs} " \ -- "root=/dev/nfs " \ -- "nfsroot=${serverip}:${rootpath},${nfsopts} rw " \ -- "ip=dhcp\0" \ -- "bootenv=uEnv.txt\0" \ -- "loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ -+ "bootenv=bb-uEnv.txt\0" \ -+ "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ - "importbootenv=echo Importing environment from mmc ...; " \ - "env import -t $loadaddr $filesize\0" \ -- "ramargs=setenv bootargs console=${console} " \ -- "${optargs} " \ -- "root=${ramroot} " \ -- "rootfstype=${ramrootfstype}\0" \ -- "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \ -- "loaduimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \ -- "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \ - "mmcboot=echo Booting from mmc ...; " \ -- "run mmcargs; " \ -- "bootm ${loadaddr} - ${fdtaddr}\0" \ -- "nandboot=echo Booting from nand ...; " \ -- "run nandargs; " \ -- "nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; " \ -- "bootm ${loadaddr}\0" \ -- "spiboot=echo Booting from spi ...; " \ -- "run spiargs; " \ -- "sf probe ${spibusno}:0; " \ -- "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \ -- "bootm ${loadaddr}\0" \ -- "netboot=echo Booting from network ...; " \ -- "setenv autoload no; " \ -- "dhcp; " \ -- "tftp ${loadaddr} ${bootfile}; " \ -- "tftp ${fdtaddr} ${fdtfile}; " \ -- "run netargs; " \ -- "bootm ${loadaddr} - ${fdtaddr}\0" \ -- "ramboot=echo Booting from ramdisk ...; " \ -- "run ramargs; " \ -- "bootm ${loadaddr} ${rdaddr} ${fdtaddr}\0" \ -+ "bootelf ${kloadaddr}\0" \ -+ "loadfdt=fatload mmc ${mmcdev} ${fdtaddr} ${fdtfile};fdt addr ${fdtaddr}\0" \ -+ "loadimage=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \ - "findfdt="\ - "if test $board_name = A335BONE; then " \ -- "setenv fdtfile am335x-bone.dtb; fi; " \ -+ "setenv fdtfile bbone.dtb; fi; " \ - "if test $board_name = A335BNLT; then " \ -- "setenv fdtfile am335x-boneblack.dtb; fi; " \ -+ "setenv fdtfile bboneblk.dtb; fi; " \ - "if test $board_name = A33515BB; then " \ - "setenv fdtfile am335x-evm.dtb; fi; " \ - "if test $board_name = A335X_SK; then " \ -@@ -160,12 +96,10 @@ - "echo Running uenvcmd ...;" \ - "run uenvcmd;" \ - "fi;" \ -- "if run loaduimage; then " \ -+ "if run loadimage; then " \ - "run loadfdt;" \ - "run mmcboot;" \ - "fi;" \ -- "else " \ -- "run nandboot;" \ - "fi;" \ - - /* Clock Defines */ -@@ -205,8 +139,6 @@ - #define CONFIG_DOS_PARTITION - #define CONFIG_CMD_FAT - #define CONFIG_FAT_WRITE --#define CONFIG_CMD_EXT2 --#define CONFIG_CMD_EXT4 - #define CONFIG_CMD_FS_GENERIC - - #define CONFIG_SPI -@@ -230,7 +162,6 @@ - /* USB Device Firmware Update support */ - #define CONFIG_DFU_FUNCTION - #define CONFIG_DFU_MMC --#define CONFIG_DFU_NAND - #define CONFIG_CMD_DFU - #define DFU_ALT_INFO_MMC \ - "boot part 0 1;" \ -@@ -240,14 +171,6 @@ - "u-boot.img.raw mmc 300 3C0;" \ - "u-boot.img fat 0 1;" \ - "uEnv.txt fat 0 1" --#define DFU_ALT_INFO_NAND \ -- "SPL part 0 1;" \ -- "SPL.backup1 part 0 2;" \ -- "SPL.backup2 part 0 3;" \ -- "SPL.backup3 part 0 4;" \ -- "u-boot part 0 5;" \ -- "kernel part 0 7;" \ -- "rootfs part 0 8" - - /* Physical Memory Map */ - #define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */ -@@ -313,7 +236,7 @@ - #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ - #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ - #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1 --#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img" -+#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "bb-uboot.img" - #define CONFIG_SPL_MMC_SUPPORT - #define CONFIG_SPL_FAT_SUPPORT - #define CONFIG_SPL_I2C_SUPPORT -@@ -323,51 +246,15 @@ - #define CONFIG_SPL_LIBGENERIC_SUPPORT - #define CONFIG_SPL_SERIAL_SUPPORT - #define CONFIG_SPL_GPIO_SUPPORT --#define CONFIG_SPL_YMODEM_SUPPORT --#define CONFIG_SPL_NET_SUPPORT --#define CONFIG_SPL_NET_VCI_STRING "AM335x U-Boot SPL" --#define CONFIG_SPL_ETH_SUPPORT - #define CONFIG_SPL_SPI_SUPPORT - #define CONFIG_SPL_SPI_FLASH_SUPPORT - #define CONFIG_SPL_SPI_LOAD - #define CONFIG_SPL_SPI_BUS 0 - #define CONFIG_SPL_SPI_CS 0 - #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x80000 --#define CONFIG_SPL_MUSB_NEW_SUPPORT - #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/am33xx/u-boot-spl.lds" - - #define CONFIG_SPL_BOARD_INIT --#define CONFIG_SPL_NAND_AM33XX_BCH --#define CONFIG_SPL_NAND_SUPPORT --#define CONFIG_SPL_NAND_BASE --#define CONFIG_SPL_NAND_DRIVERS --#define CONFIG_SPL_NAND_ECC --#define CONFIG_SYS_NAND_5_ADDR_CYCLE --#define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \ -- CONFIG_SYS_NAND_PAGE_SIZE) --#define CONFIG_SYS_NAND_PAGE_SIZE 2048 --#define CONFIG_SYS_NAND_OOBSIZE 64 --#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) --#define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS --#define CONFIG_SYS_NAND_ECCPOS { 2, 3, 4, 5, 6, 7, 8, 9, \ -- 10, 11, 12, 13, 14, 15, 16, 17, \ -- 18, 19, 20, 21, 22, 23, 24, 25, \ -- 26, 27, 28, 29, 30, 31, 32, 33, \ -- 34, 35, 36, 37, 38, 39, 40, 41, \ -- 42, 43, 44, 45, 46, 47, 48, 49, \ -- 50, 51, 52, 53, 54, 55, 56, 57, } -- --#define CONFIG_SYS_NAND_ECCSIZE 512 --#define CONFIG_SYS_NAND_ECCBYTES 14 -- --#define CONFIG_SYS_NAND_ECCSTEPS 4 --#define CONFIG_SYS_NAND_ECCTOTAL (CONFIG_SYS_NAND_ECCBYTES * \ -- CONFIG_SYS_NAND_ECCSTEPS) -- --#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE -- --#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 -- - /* - * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM - * 64 bytes before this address should be set aside for u-boot.img's -@@ -462,7 +349,7 @@ - #define CONFIG_PHY_ADDR 0 - #define CONFIG_PHY_SMSC - --#define CONFIG_NAND -+#undef CONFIG_NAND - /* NAND support */ - #ifdef CONFIG_NAND - #define CONFIG_CMD_NAND --------------080405020601010403050600--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5345FEED.1040604>