#define CONFIG_S5PC100 1 /* which is in a S5PC100 */
#define CONFIG_S5PC110 1 /* which is in a S5PC110 */
#define CONFIG_UNIVERSAL 1 /* working with Universal */
+#define CONFIG_MACH_AQUILA 1 /* working with Aquila */
+#define CONFIG_RECOVERY 1 /* working with recovery block */
#include <asm/arch/cpu.h> /* get chip and board defs */
***********************************************************/
#include <config_cmd_default.h>
-#undef CONFIG_CMD_LOADB
-#undef CONFIG_CMD_LOADS
#undef CONFIG_CMD_BOOTD
+#undef CONFIG_CMD_CONSOLE
+#undef CONFIG_CMD_ECHO
#undef CONFIG_CMD_FPGA
-#undef CONFIG_CMD_XIMG
-#undef CONFIG_CMD_NAND
-#undef CONFIG_CMD_IMLS
+#undef CONFIG_CMD_ITEST
#undef CONFIG_CMD_FLASH
#undef CONFIG_CMD_IMLS
-#undef CONFIG_CMD_NET
+#undef CONFIG_CMD_LOADB
+#undef CONFIG_CMD_LOADS
+#undef CONFIG_CMD_NAND
+#undef CONFIG_CMD_MISC
+#undef CONFIG_CMD_NFS
+#undef CONFIG_CMD_SOURCE
+#undef CONFIG_CMD_XIMG
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_REGINFO
#define CONFIG_CMD_ONENAND
#define CONFIG_CMD_MTDPARTS
+#define CONFIG_CMD_MTDPARTS_LITE
#define CONFIG_CMD_I2C
#define CONFIG_CMD_MMC
#define CONFIG_CMD_SLEEP
-#define CONFIG_CMD_GPIO
#define CONFIG_CMD_PMIC
#define CONFIG_CMD_DEVICE_POWER
+/* disabled commands */
+//#define CONFIG_CMD_GPIO
+
+#undef CONFIG_CRC16
+#undef CONFIG_XYZMODEM
+
#define CONFIG_SYS_64BIT_VSPRINTF 1
-#define CONFIG_BOOTDELAY 1
+#define CONFIG_BOOTDELAY 1
#define CONFIG_ZERO_BOOTDELAY_CHECK
+/* To enable UBI command */
+#if 0
+#define CONFIG_CMD_UBI
+#define CONFIG_RBTREE
+#define CONFIG_CMD_UBIFS
+#define CONFIG_LZO
+#endif
+
+/* To use the TFTPBOOT over USB, Please enable the CONFIG_CMD_NET */
+#undef CONFIG_CMD_NET
+
+#ifdef CONFIG_CMD_NET
+/* Ethernet */
+#define CONFIG_NET_MULTI 1
+#define CONFIG_NET_RETRY_COUNT 2
+#define CONFIG_NET_DO_NOT_TRY_ANOTHER 1
+
+/* NFS support in Ethernet over USB is broken */
+
+/* Configure Ethernet over USB */
+#define CONFIG_USB_ETH_RNDIS 1
+#define CONFIG_USB_GADGET 1
+#define CONFIG_USB_GADGET_S3C_UDC_OTG 1
+#define CONFIG_USB_GADGET_DUALSPEED 1
+#define CONFIG_USB_ETHER 1
+#define CONFIG_USBNET_MANUFACTURER "S5PC1xx U-Boot"
+/* ethaddr settings can be overruled via environment settings */
+#define CONFIG_USBNET_DEV_ADDR "8e:28:0f:fa:3c:39"
+#define CONFIG_USBNET_HOST_ADDR "0a:fa:63:8b:e8:0a"
+#define CONFIG_USB_CDC_VENDOR_ID 0x0525
+#define CONFIG_USB_CDC_PRODUCT_ID 0xa4a1
+#define CONFIG_USB_RNDIS_VENDOR_ID 0x0525
+#define CONFIG_USB_RNDIS_PRODUCT_ID 0xa4a2
+
+#endif
+
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_IPADDR 192.168.129.3
#define CONFIG_SERVERIP 192.168.129.1
#define CONFIG_GATEWAYIP 192.168.129.1
-#define CONFIG_ETHADDR 00:0E:99:34:10:00
+#define CONFIG_ETHADDR 8e:28:0f:fa:3c:39
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
/* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */
#define MTDIDS_DEFAULT "onenand0=samsung-onenand"
-#define MTDPARTS_DEFAULT "mtdparts=samsung-onenand:256k(bootloader)"\
+#define MTDPARTS_DEFAULT "mtdparts=samsung-onenand:1m(bootloader)"\
",128k(params)"\
- ",3m(kernel)"\
- ",18m(modem)"\
- ",7m(fota)"\
+ ",2816k(config)"\
",8m(csa)"\
+ ",7m(kernel)"\
",1m(log)"\
+ ",12m(modem)"\
+ ",60m(qboot)"\
",-(UBI)\0"
-#define MTDPARTS_DEFAULT_4KB "mtdparts=samsung-onenand:256k(bootloader)"\
+#define MTDPARTS_DEFAULT_4KB "mtdparts=samsung-onenand:1m(bootloader)"\
",256k(params)"\
- ",3m(kernel)"\
- ",18m(modem)"\
- ",7m(fota)"\
+ ",2816k(config)"\
",8m(csa)"\
+ ",7m(kernel)"\
",1m(log)"\
+ ",12m(modem)"\
+ ",60m(qboot)"\
",-(UBI)\0"
#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT
#define CONFIG_BOOTCOMMAND "run ubifsboot"
+#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
+
#define CONFIG_RAMDISK_BOOT "root=/dev/ram0 rw rootfstype=ext2" \
- " console=ttySAC2,115200n8" \
- " ${meminfo}"
+ " ${console} ${meminfo}"
-#define CONFIG_COMMON_BOOT "console=ttySAC2,115200n8" \
- " ${meminfo}" \
- " ${mtdparts}"
+#define CONFIG_COMMON_BOOT "${console} ${meminfo} ${mtdparts}"
-#define CONFIG_BOOTARGS "root=/dev/mtdblock8 ubi.mtd=7 ubi.mtd=5" \
+#define CONFIG_BOOTARGS "root=/dev/mtdblock8 ubi.mtd=8 ubi.mtd=3 ubi.mtd=6" \
" rootfstype=cramfs " CONFIG_COMMON_BOOT
-#define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x40000;" \
- " onenand write 0x32008000 0x0 0x40000\0"
+#define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x100000;" \
+ " onenand write 0x32008000 0x0 0x100000\0"
-#define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=5"
+#define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=3 ubi.mtd=6"
#define CONFIG_UBIFS_OPTION "rootflags=bulk_read,no_chk_data_crc"
#define CONFIG_SYS_CONSOLE_IS_IN_ENV
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_UPDATEB \
- "updatek=onenand erase 0x80000 0x300000;" \
- " onenand write 0x31008000 0x80000 0x300000\0" \
+ "updatek=onenand erase 0xc00000 0x600000;" \
+ " onenand write 0x31008000 0xc00000 0x600000\0" \
"updateu=onenand erase 0x01560000 0x1eaa0000;" \
" onenand write 0x32000000 0x1260000 0x8C0000\0" \
- "bootk=onenand read 0x30007FC0 0x80000 0x300000;" \
+ "bootk=onenand read 0x30007FC0 0xc00000 0x600000;" \
" bootm 0x30007FC0\0" \
"flashboot=set bootargs root=/dev/mtdblock${bootblock}" \
" rootfstype=${rootfstype}" \
"ubifsboot=set bootargs root=ubi0!rootfs rootfstype=ubifs " \
CONFIG_UBIFS_OPTION CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
CONFIG_COMMON_BOOT "; run bootk\0" \
+ "tftpboot=set bootargs root=ubi0!rootfs rootfstype=ubifs " \
+ CONFIG_UBIFS_OPTION CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
+ CONFIG_COMMON_BOOT "; tftp 0x30007FC0 uImage; bootm 0x30007FC0\0" \
"boottrace=setenv opts initcall_debug; run bootcmd\0" \
"android=set bootargs root=ubi0!ramdisk " CONFIG_UBI_MTD \
" rootfstype=ubifs init=/init.sh " CONFIG_COMMON_BOOT "; run bootk\0" \
" initrd=0x33000000,8M ramdisk=8192\0" \
"mmcboot=set bootargs root=${mmcblk} rootfstype=${rootfstype}" \
CONFIG_UBI_MTD " ${opts} ${lcdinfo} " CONFIG_COMMON_BOOT "; run bootk\0" \
+ "bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \
"verify=n\0" \
"rootfstype=cramfs\0" \
+ "console=" CONFIG_DEFAULT_CONSOLE \
"mtdparts=" MTDPARTS_DEFAULT \
"meminfo=mem=80M mem=128M@0x40000000\0" \
"nfsroot=/nfsroot/arm\0" \
"mmcblk=/dev/mmcblk1p1\0" \
- "bootblock=8\0" \
- "ubiblock=7\0" \
- "ubi=enabled"
+ "bootblock=9\0" \
+ "ubiblock=8\0" \
+ "ubi=enabled\0" \
+ "opts=always_resume=1"
/*
* Miscellaneous configurable options
#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE /* memtest works on */
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x5000000)
-#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x4800000)
+#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x4000000)
+#define CONFIG_SYS_BOOT_ADDR (CONFIG_SYS_SDRAM_BASE + 0x4800000)
#define CONFIG_SYS_HZ 1000
/* OneNAND IPL uses 8KiB */
#define CONFIG_ONENAND_START_PAGE 4
+/* IPL + RECOVERY + U-BOOT */
+#define CONFIG_RECOVERY_UBOOT_BLOCK 1
+#define CONFIG_RECOVERY_BOOT_BLOCKS 4
+
#define CONFIG_ENV_IS_IN_ONENAND 1
#define CONFIG_ENV_SIZE (256 << 10) /* 256 KiB, 0x40000 */
-#define CONFIG_ENV_ADDR (256 << 10) /* 256 KiB, 0x40000 */
-#define CONFIG_ENV_OFFSET (256 << 10) /* 256 KiB, 0x40000 */
+#define CONFIG_ENV_ADDR (1 << 20) /* 1 MB, 0x100000 */
+
+#define CONFIG_RECOVERY_SIZE (768 << 10) /* 768 KiB, 0xC0000 */
+#define CONFIG_RECOVERY_ADDR (256 << 10) /* 256 KiB, 0x40000 */
#define CONFIG_USE_ONENAND_BOARD_INIT
#define CONFIG_SAMSUNG_ONENAND 1
/* LCD */
#if 1 /* For LCD test */
#define CONFIG_LCD 1
+#define CONFIG_FB_RESERVED_MEM 0x42504000
#define CONFIG_S5PC1XXFB 1
#define CONFIG_S6E63M0 1
+#define CONFIG_S6D16A0X 1
#define CONFIG_CMD_BMP
#endif