arm:goni: Adjustment of configuration for goni target
PATCH 1/3 arm:goni: Adjustment of configuration for goni target
From: Arkadiusz Wlodarczyk <[email protected]>
---
Changes
This change encompasses set of adjustments in the configuration of the u-boot in the include/configs/s5p_goni.h, particularly change of rootfs type, change in kernel booting method and added DFU support. All those changes are connected with adjusting of existing goni configuration to latest changes in kernel.
--- board/samsung/goni/goni.c | 7 +++++++ include/configs/s5p_goni.h | 37 ++++++++++++++++++++++++++++++++----- 2 files changed, 39 insertions(+), 5 deletions(-)
board/samsung/goni/goni.c +7 -0
@@ -155,4 +155,11 @@ struct s3c_plat_otg_data s5pc110_otg_data = { .regs_otg = S5PC110_OTG_BASE, .usb_phy_ctrl = S5PC110_USB_PHY_CONTROL, }; + +void board_usb_init (void ) +{ +debug ("USB_udc_probe\n" ); +s3c_udc_probe (&s5pc110_otg_data); +} +#endif
include/configs/s5p_goni.h +32 -5
@@ -86,6 +86,17 @@#define CONFIG_CMD_ONENAND #define CONFIG_CMD_MTDPARTS #define CONFIG_CMD_MMC +#define CONFIG_CMD_DFU + +/* USB Composite download gadget - g_dnl */ +#define CONFIG_USBDOWNLOAD_GADGET +#define CONFIG_DFU_FUNCTION +#define CONFIG_DFU_MMC + +/* USB Samsung's IDs */ +#define CONFIG_G_DNL_VENDOR_NUM 0x04E8 +#define CONFIG_G_DNL_PRODUCT_NUM 0x6601 +#define CONFIG_G_DNL_MANUFACTURER "Samsung"#define CONFIG_BOOTDELAY 1#define CONFIG_ZERO_BOOTDELAY_CHECK
@@ -105,9 +116,13 @@",60m(qboot)" \ ",-(UBI)\0" +#define CONFIG_DFU_ALT \ + "u-boot mmc 80 400;" \ + "uImage fat 0 2\0" \ +#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT -#define CONFIG_BOOTCOMMAND "run ubifsboot" +#define CONFIG_BOOTCOMMAND "run mmcboot"#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
@@ -137,7 +152,7 @@"onenand erase 0x01560000 0x1eaa0000;" \"onenand write 0x32000000 0x1260000 0x8C0000\0" \"bootk=" \ -"onenand read 0x30007FC0 0xc00000 0x600000;" \ +"run loaduimage;" \"bootm 0x30007FC0\0" \"flashboot=" \"set bootargs root=/dev/mtdblock${bootblock} " \
@@ -156,21 +171,28 @@"set bootargs " CONFIG_RAMDISK_BOOT \" initrd=0x33000000,8M ramdisk=8192\0" \"mmcboot=" \ -"set bootargs root=${mmcblk} rootfstype=${rootfstype}" \ +"set bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \ +"rootfstype=${rootfstype}" \CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \CONFIG_COMMON_BOOT "; run bootk\0" \"boottrace=setenv opts initcall_debug; run bootcmd\0" \"bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \"verify=n\0" \ -"rootfstype=cramfs\0" \ +"rootfstype=ext4\0" \"console=" CONFIG_DEFAULT_CONSOLE \"mtdparts=" MTDPARTS_DEFAULT \"meminfo=mem=80M mem=256M at 0x40000000 mem=128M at 0x50000000\0" \ +"loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x30007FC0 uImage\0" \ +"mmcdev=0\0" \ +"mmcbootpart=2\0" \ +"mmcrootpart=5\0" \"mmcblk=/dev/mmcblk1p1\0" \"bootblock=9\0" \"ubiblock=8\0" \"ubi=enabled\0" \ -"opts=always_resume=1" +"opts=always_resume=1\0" \ +"dfu_alt_info=" CONFIG_DFU_ALT +/* Miscellaneous configurable options */ #define CONFIG_SYS_LONGHELP /* undef to save memory */
@@ -211,6 +233,10 @@#define CONFIG_DOS_PARTITION 1 +/* FAT */ +#define CONFIG_CMD_FAT +#define CONFIG_FAT_WRITE +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)#define CONFIG_SYS_CACHELINE_SIZE 64
@@ -233,5 +259,6 @@#define CONFIG_USB_GADGET #define CONFIG_USB_GADGET_S3C_UDC_OTG #define CONFIG_USB_GADGET_DUALSPEED +#define CONFIG_USB_GADGET_VBUS_DRAW 2#endif /* __CONFIG_H */
Signature · 1 line
1.7.1
PATCH 2/3 arm:goni:Change in mmc memory partitioning
From: Arkadiusz Wlodarczyk <[email protected]>
---
Changes
This item includes the following changes for goni target:
Add GPT command
Add definition of partitions for GPT
Remove MTD command
--- include/configs/s5p_goni.h | 44 ++++++++++++++++++++++++++------------------ 1 files changed, 26 insertions(+), 18 deletions(-)
include/configs/s5p_goni.h +26 -18
@@ -84,9 +84,9 @@#define CONFIG_CMD_CACHE #define CONFIG_CMD_REGINFO #define CONFIG_CMD_ONENAND -#define CONFIG_CMD_MTDPARTS #define CONFIG_CMD_MMC #define CONFIG_CMD_DFU +#define CONFIG_CMD_GPT /* USB Composite download gadget - g_dnl */ #define CONFIG_USBDOWNLOAD_GADGET
@@ -101,26 +101,30 @@#define CONFIG_BOOTDELAY 1#define CONFIG_ZERO_BOOTDELAY_CHECK -#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:1m(bootloader)"\ - ",256k(params)"\ - ",2816k(config)"\ - ",8m(csa)"\ - ",7m(kernel)"\ - ",1m(log)"\ - ",12m(modem)"\ - ",60m(qboot)"\ - ",-(UBI)\0" -#define CONFIG_DFU_ALT \ "u-boot mmc 80 400;" \ "uImage fat 0 2\0" \ -#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT +/* partitions definitions */ +#define PARTS_CSA "csa-mmc" +#define PARTS_BOOTLOADER "u-boot" +#define PARTS_BOOT "boot" +#define PARTS_ROOT "platform" +#define PARTS_DATA "data" +#define PARTS_CSC "csc" +#define PARTS_UMS "ums" + +#define PARTS_DEFAULT \ + "uuid_disk=${uuid_gpt_disk};" \ + "name="PARTS_CSA",size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \ + "name="PARTS_BOOTLOADER",size=60MiB," \ + "uuid=${uuid_gpt_"PARTS_BOOTLOADER"};" \ + "name="PARTS_BOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \ + "name="PARTS_ROOT",size=1GiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \ + "name="PARTS_DATA",size=3GiB,uuid=${uuid_gpt_"PARTS_DATA"};" \ + "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \ + "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \ +#define CONFIG_BOOTCOMMAND "run mmcboot"
@@ -180,12 +184,12 @@"verify=n\0" \"rootfstype=ext4\0" \"console=" CONFIG_DEFAULT_CONSOLE \ -"mtdparts=" MTDPARTS_DEFAULT \"meminfo=mem=80M mem=256M at 0x40000000 mem=128M at 0x50000000\0" \"loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x30007FC0 uImage\0" \"mmcdev=0\0" \"mmcbootpart=2\0" \"mmcrootpart=5\0" \ +"partitions=" PARTS_DEFAULT \"mmcblk=/dev/mmcblk1p1\0" \"bootblock=9\0" \"ubiblock=8\0" \
@@ -237,6 +241,10 @@#define CONFIG_CMD_FAT #define CONFIG_FAT_WRITE +/* GPT */ +#define CONFIG_EFI_PARTITION +#define CONFIG_PARTITION_UUIDS +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)#define CONFIG_SYS_CACHELINE_SIZE 64
Signature · 1 line
1.7.1
PATCH 3/3 arm:goni: Add support for USB mass storage
In reply to a.wlodarczyk at samsung.comFrom: Arkadiusz Wlodarczyk <[email protected]>
---
Changes
Switch on USB gadget mass storage and ums command in configuration for goni target; Add code supporting USB gadget mass storage in board/samsung/goni/goni.c
---
Depends on implementation of USB mass storage
for Samsung.
http://patchwork.ozlabs.org/patch/219744/
http://patchwork.ozlabs.org/patch/219746/
http://patchwork.ozlabs.org/patch/219745/
--- board/samsung/goni/goni.c | 68 ++++++++++++++++++++++++++++++++++++++++++++ include/configs/s5p_goni.h | 5 +++ 2 files changed, 73 insertions(+), 0 deletions(-)
board/samsung/goni/goni.c +68 -0
@@ -29,6 +29,7 @@#include <usb/s3c_udc.h> #include <asm/arch/cpu.h> #include <power/max8998_pmic.h> +#include <usb_mass_storage.h> DECLARE_GLOBAL_DATA_PTR ;static struct s5pc110_gpio *s5pc110_gpio;
@@ -163,3 +164,70 @@ void board_usb_init(void) }#endif + +#ifdef CONFIG_USB_GADGET_MASS_STORAGE +static int ums_read_sector (struct ums_device *ums_dev, +ulong start,lbaint_t blkcnt,void *buf) +{ +if (ums_dev->mmc->block_dev.block_read (ums_dev->dev_num, + start + ums_dev->offset, blkcnt, buf) != blkcnt) +return -1 ; + +return 0 ; +} + +static int ums_write_sector (struct ums_device *ums_dev, +ulong start,lbaint_t blkcnt,const void *buf) +{ +if (ums_dev->mmc->block_dev.block_write (ums_dev->dev_num, + start + ums_dev->offset, blkcnt, buf) != blkcnt) +return -1 ; + +return 0 ; +} + +static void ums_get_capacity (struct ums_device *ums_dev, +long long int *capacity) +{ +long long int tmp_capacity; + + tmp_capacity = (long long int ) ((ums_dev->offset + ums_dev->part_size) + *SECTOR_SIZE ); + *capacity = ums_dev->mmc->capacity - tmp_capacity; +} + +static struct ums_board_info ums_board = { + .read_sector = ums_read_sector, + .write_sector = ums_write_sector, + .get_capacity = ums_get_capacity, + .name ="GONI UMS disk" , + .ums_dev = { + .mmc =NULL , + .dev_num =0 , + .offset =0 , + .part_size =0. + }, +}; + +struct ums_board_info *board_ums_init (unsigned int dev_num,unsigned int offset, +unsigned int part_size) +{ +struct mmc *mmc; + + mmc =find_mmc_device (dev_num); +/* mmc initialization is necessary prior to the ums command usage +* due to fact that on goni target environment is read from oneNand +* memory, so the mmc remains uninitialized whenu-boot prompt appears +* */ +if (!mmc ||mmc_init (mmc)) +return NULL ; + + ums_board.ums_dev.mmc = mmc; + ums_board.ums_dev.dev_num = dev_num; + ums_board.ums_dev.offset = offset; + ums_board.ums_dev.part_size = part_size; + +return &ums_board; +} + +#endif
include/configs/s5p_goni.h +5 -0
@@ -269,4 +269,9 @@#define CONFIG_USB_GADGET_DUALSPEED #define CONFIG_USB_GADGET_VBUS_DRAW 2 +#define CONFIG_CMD_USB_MASS_STORAGE +#if defined(CONFIG_CMD_USB_MASS_STORAGE ) +#define CONFIG_USB_GADGET_MASS_STORAGE +#endif +#endif /* __CONFIG_H */
Signature · 1 line
1.7.1
PATCH 3/3 arm:goni: Add support for USB mass storage
Dear Arkadiusz Wlodarczyk,
Quoted 83 lines · a.wlodarczyk at samsung.com
From: Arkadiusz Wlodarczyk <[email protected]>
Signed-off-by Arkadiusz Wlodarczyk <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Tested-by Arkadiusz Wlodarczyk <[email protected]>Cc Minkyu Kang <[email protected]>---
Changes
Switch on USB gadget mass storage and ums command in configuration for goni target; Add code supporting USB gadget mass storage inboard/samsung/goni/goni.c
---
Depends on implementation of USB mass storage
for Samsung.
http://patchwork.ozlabs.org/patch/219744/
http://patchwork.ozlabs.org/patch/219746/
http://patchwork.ozlabs.org/patch/219745/--- board/samsung/goni/goni.c | 68 ++++++++++++++++++++++++++++++++++++++++++++ include/configs/s5p_goni.h | 5 +++ 2 files changed, 73 insertions(+), 0 deletions(-)board/samsung/goni/goni.c +46
-0@@ -29,6 +29,7 @@#include <usb/s3c_udc.h> #include <asm/arch/cpu.h> #include <power/max8998_pmic.h> +#include <usb_mass_storage.h> DECLARE_GLOBAL_DATA_PTR ;static struct s5pc110_gpio *s5pc110_gpio;@@ -163,3 +164,70 @@ void board_usb_init(void) }#endif + +#ifdef CONFIG_USB_GADGET_MASS_STORAGE +static int ums_read_sector (struct ums_device *ums_dev, +ulong start,lbaint_t blkcnt,void *buf) +{ +if (ums_dev->mmc->block_dev.block_read (ums_dev->dev_num, + start + ums_dev->offset, blkcnt, buf) != blkcnt) +return -1 ; + +return 0 ; +} + +static int ums_write_sector (struct ums_device *ums_dev, +ulong start,lbaint_t blkcnt,const void *buf) +{ +if (ums_dev->mmc->block_dev.block_write (ums_dev->dev_num, + start + ums_dev->offset, blkcnt, buf) != blkcnt) +return -1 ; + +return 0 ; +} + +static void ums_get_capacity (struct ums_device *ums_dev, +long long int *capacity) +{ +long long int tmp_capacity; + + tmp_capacity = (long long int ) ((ums_dev->offset + ums_dev->part_size) + *SECTOR_SIZE ); + *capacity = ums_dev->mmc->capacity - tmp_capacity; +} + +static struct ums_board_info ums_board = { + .read_sector = ums_read_sector, + .write_sector = ums_write_sector, + .get_capacity = ums_get_capacity, + .name ="GONI UMS disk" , + .ums_dev = { + .mmc =NULL , + .dev_num =0 , + .offset =0 , + .part_size =0. + }, +}; +
board/samsung/goni/goni.c void board_usb_init(void) · line 221
Quoted 10 lines
board/samsung/goni/goni.c +10
-0+struct ums_board_info *board_ums_init (unsigned int dev_num,unsigned int offset, +unsigned int part_size) +{ +struct mmc *mmc; + + mmc =find_mmc_device (dev_num); +/* mmc initialization is necessary prior to the ums command usage +* due to fact that on goni target environment is read from oneNand +* memory, so the mmc remains uninitialized whenu-boot prompt appears +* */
please check multi line comments rule.
board/samsung/goni/goni.c void board_usb_init(void) · line 222
Quoted 1 line
board/samsung/goni/goni.c +1
-0+if (!mmc ||mmc_init (mmc))
why don't you separate this statement?
Quoted 16 lines
board/samsung/goni/goni.c +11
-0+return NULL ; + + ums_board.ums_dev.mmc = mmc; + ums_board.ums_dev.dev_num = dev_num; + ums_board.ums_dev.offset = offset; + ums_board.ums_dev.part_size = part_size; + + return &ums_board; +} + +#endif include/configs/s5p_goni.h +0
-0
include/configs/s5p_goni.h line 273
Quoted 5 lines
include/configs/s5p_goni.h +2
-0@@ -269,4 +269,9 @@#define CONFIG_USB_GADGET_DUALSPEED #define CONFIG_USB_GADGET_VBUS_DRAW 2 +#define CONFIG_CMD_USB_MASS_STORAGE +#if defined(CONFIG_CMD_USB_MASS_STORAGE )
I think, this ifdef is unnecessary.
include/configs/s5p_goni.h line 277
Quoted 5 lines
include/configs/s5p_goni.h +3
-0+#define CONFIG_USB_GADGET_MASS_STORAGE +#endif +#endif /* __CONFIG_H */
Thanks,
Minkyu Kang.
PATCH 1/3 arm:goni: Adjustment of configuration for goni target
In reply to a.wlodarczyk at samsung.comDear Arkadiusz Wlodarczyk,
Quoted 23 lines · a.wlodarczyk at samsung.com
From: Arkadiusz Wlodarczyk <[email protected]>
Signed-off-by Arkadiusz Wlodarczyk <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Tested-by Arkadiusz Wlodarczyk <[email protected]>Cc Minkyu Kang <[email protected]>---
Changes
This change encompasses set of adjustments in the configuration of the u-boot in theinclude/configs/s5p_goni.h, particularly change of rootfs type, change in kernel booting method and added DFU support. All those changes are connected with adjusting of existing goni configuration to latest changes in kernel.--- board/samsung/goni/goni.c | 7 +++++++ include/configs/s5p_goni.h | 37 ++++++++++++++++++++++++++++++++----- 2 files changed, 39 insertions(+), 5 deletions(-)board/samsung/goni/goni.c +0
-0
board/samsung/goni/goni.c struct s3c_plat_otg_data s5pc110_otg_data = { · line 163
Quoted 9 lines
board/samsung/goni/goni.c +6
-0@@ -155,4 +155,11 @@ struct s3c_plat_otg_data s5pc110_otg_data = { .regs_otg = S5PC110_OTG_BASE, .usb_phy_ctrl = S5PC110_USB_PHY_CONTROL, }; + +void board_usb_init (void ) +{ +debug ("USB_udc_probe\n" ); +s3c_udc_probe (&s5pc110_otg_data); +}
I think, this is unrelated changes to subject.
Quoted 93 lines
board/samsung/goni/goni.c +1
-0+#endif include/configs/s5p_goni.h +31
-5@@ -86,6 +86,17 @@#define CONFIG_CMD_ONENAND #define CONFIG_CMD_MTDPARTS #define CONFIG_CMD_MMC +#define CONFIG_CMD_DFU + +/* USB Composite download gadget - g_dnl */ +#define CONFIG_USBDOWNLOAD_GADGET +#define CONFIG_DFU_FUNCTION +#define CONFIG_DFU_MMC + +/* USB Samsung's IDs */ +#define CONFIG_G_DNL_VENDOR_NUM 0x04E8 +#define CONFIG_G_DNL_PRODUCT_NUM 0x6601 +#define CONFIG_G_DNL_MANUFACTURER "Samsung"#define CONFIG_BOOTDELAY 1#define CONFIG_ZERO_BOOTDELAY_CHECK @@ -105,9 +116,13 @@",60m(qboot)" \ ",-(UBI)\0" +#define CONFIG_DFU_ALT \ + "u-boot mmc 80 400;" \ + "uImage fat 0 2\0" \ +#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT -#define CONFIG_BOOTCOMMAND "run ubifsboot" +#define CONFIG_BOOTCOMMAND "run mmcboot"#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"@@ -137,7 +152,7 @@"onenand erase 0x01560000 0x1eaa0000;" \"onenand write 0x32000000 0x1260000 0x8C0000\0" \"bootk=" \ -"onenand read 0x30007FC0 0xc00000 0x600000;" \ +"run loaduimage;" \"bootm 0x30007FC0\0" \"flashboot=" \"set bootargs root=/dev/mtdblock${bootblock} " \@@ -156,21 +171,28 @@"set bootargs " CONFIG_RAMDISK_BOOT \" initrd=0x33000000,8M ramdisk=8192\0" \"mmcboot=" \ -"set bootargs root=${mmcblk} rootfstype=${rootfstype}" \ +"set bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \ +"rootfstype=${rootfstype}" \CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \CONFIG_COMMON_BOOT "; run bootk\0" \"boottrace=setenv opts initcall_debug; run bootcmd\0" \"bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \"verify=n\0" \ -"rootfstype=cramfs\0" \ +"rootfstype=ext4\0" \"console=" CONFIG_DEFAULT_CONSOLE \"mtdparts=" MTDPARTS_DEFAULT \"meminfo=mem=80M mem=256M at 0x40000000 mem=128M at 0x50000000\0" \ +"loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x30007FC0 uImage\0" \ +"mmcdev=0\0" \ +"mmcbootpart=2\0" \ +"mmcrootpart=5\0" \"mmcblk=/dev/mmcblk1p1\0" \"bootblock=9\0" \"ubiblock=8\0" \"ubi=enabled\0" \ -"opts=always_resume=1" +"opts=always_resume=1\0" \ +"dfu_alt_info=" CONFIG_DFU_ALT +/* Miscellaneous configurable options */ #define CONFIG_SYS_LONGHELP /* undef to save memory */@@ -211,6 +233,10 @@#define CONFIG_DOS_PARTITION 1 +/* FAT */ +#define CONFIG_CMD_FAT +#define CONFIG_FAT_WRITE +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)#define CONFIG_SYS_CACHELINE_SIZE 64
include/configs/s5p_goni.h line 264
Quoted 6 lines
include/configs/s5p_goni.h +1
-0@@ -233,5 +259,6 @@#define CONFIG_USB_GADGET #define CONFIG_USB_GADGET_S3C_UDC_OTG #define CONFIG_USB_GADGET_DUALSPEED +#define CONFIG_USB_GADGET_VBUS_DRAW 2#endif /* __CONFIG_H */
Thanks,
Minkyu Kang.
PATCH 1/3 arm:goni: Adjustment of configuration for goni target
Dear Minkyu Kang,
As I understood, you marked that adding of the void board_usb_init(void) function implementation to the board/samsung/goni/goni.c file is unrelated to the subject of the patch. I would like to explain, that I added the board_usb_init implementation because the function is used by the dfu u-boot command. The patch switches this command on for the goni target, so to allow the source to compile and work for goni target, implementation of the function is necessary. Due to the above I would like to keep this part of the patch unchanged.
Thanks,
Arek Wlodarczyk.
-----Original Message-----
From: Minkyu Kang [mailto:mk7.kang at samsung.com]
Sent: Wednesday, March 27, 2013 3:18 AM
To: a.wlodarczyk at samsung.com
Cc: u-boot at lists.denx.de; l.majewski at samsung.com; Kyungmin Park
Subject: Re: [PATCH 1/3] arm:goni: Adjustment of configuration for goni target
Dear Arkadiusz Wlodarczyk,
Quoted 23 lines · a.wlodarczyk at samsung.com
From: Arkadiusz Wlodarczyk <[email protected]>
Signed-off-by Arkadiusz Wlodarczyk <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Tested-by Arkadiusz Wlodarczyk <[email protected]>Cc Minkyu Kang <[email protected]>---
Changes
This change encompasses set of adjustments in the configuration of the u-boot in theinclude/configs/s5p_goni.h, particularly change of rootfs type, change in kernel booting method and added DFU support. All those changes are connected with adjusting of existing goni configuration to latest changes in kernel.--- board/samsung/goni/goni.c | 7 +++++++ include/configs/s5p_goni.h | 37 ++++++++++++++++++++++++++++++++----- 2 files changed, 39 insertions(+), 5 deletions(-)board/samsung/goni/goni.c +0
-0
board/samsung/goni/goni.c struct s3c_plat_otg_data s5pc110_otg_data = { · line 162
Quoted 8 lines
board/samsung/goni/goni.c +6
-0@@ -155,4 +155,11 @@ struct s3c_plat_otg_data s5pc110_otg_data = { .regs_otg = S5PC110_OTG_BASE, .usb_phy_ctrl = S5PC110_USB_PHY_CONTROL, }; + +void board_usb_init (void ) +{ +debug ("USB_udc_probe\n" ); +s3c_udc_probe (&s5pc110_otg_data); +}
I think, this is unrelated changes to subject.
Quoted 39 lines
board/samsung/goni/goni.c +1
-0+#endif include/configs/s5p_goni.h +15
-1@@ -86,6 +86,17 @@#define CONFIG_CMD_ONENAND #define CONFIG_CMD_MTDPARTS #define CONFIG_CMD_MMC +#define CONFIG_CMD_DFU + +/* USB Composite download gadget - g_dnl */ #define +CONFIG_USBDOWNLOAD_GADGET #define CONFIG_DFU_FUNCTION #define +CONFIG_DFU_MMC + +/* USB Samsung's IDs */ +#define CONFIG_G_DNL_VENDOR_NUM 0x04E8 #define +CONFIG_G_DNL_PRODUCT_NUM 0x6601 #define CONFIG_G_DNL_MANUFACTURER +"Samsung"#define CONFIG_BOOTDELAY 1#define CONFIG_ZERO_BOOTDELAY_CHECK @@ -105,9 +116,13 @@",60m(qboot)" \ ",-(UBI)\0" +#define CONFIG_DFU_ALT \ + "u-boot mmc 80 400;" \ + "uImage fat 0 2\0" \ +#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT -#define CONFIG_BOOTCOMMAND "run ubifsboot" +#define CONFIG_BOOTCOMMAND "run mmcboot"#define CONFIG_DEFAULT_CONSOLE "console=ttySAC2,115200n8\0"
include/configs/s5p_goni.h line 158
Quoted 8 lines
include/configs/s5p_goni.h +1
-1@@ -137,7 +152,7 @@"onenand erase 0x01560000 0x1eaa0000;" \"onenand write 0x32000000 0x1260000 0x8C0000\0" \"bootk=" \ -"onenand read 0x30007FC0 0xc00000 0x600000;" \ +"run loaduimage;" \"bootm 0x30007FC0\0" \"flashboot=" \ "set bootargs root=/dev/mtdblock${bootblock} " \ @@ -156,21
+171,28
Quoted 8 lines
@@
include/configs/s5p_goni.h +2
-1"set bootargs " CONFIG_RAMDISK_BOOT \" initrd=0x33000000,8M ramdisk=8192\0" \"mmcboot=" \ -"set bootargs root=${mmcblk} rootfstype=${rootfstype}" \ +"set bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \ +"rootfstype=${rootfstype}" \CONFIG_UBI_MTD " ${opts} ${lcdinfo} " \
include/configs/s5p_goni.h
Quoted 10 lines
include/configs/s5p_goni.h +2
-1CONFIG_COMMON_BOOT "; run bootk\0" \"boottrace=setenv opts initcall_debug; run bootcmd\0" \"bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \"verify=n\0" \ -"rootfstype=cramfs\0" \ +"rootfstype=ext4\0" \"console=" CONFIG_DEFAULT_CONSOLE \"mtdparts=" MTDPARTS_DEFAULT \"meminfo=mem=80M mem=256M at 0x40000000 mem=128M at 0x50000000\0" \ + "loaduimage=fatload mmc ${mmcdev}:${mmcbootpart} 0x30007FC0
uImage\0" \
Quoted 31 lines
include/configs/s5p_goni.h +10
-1+"mmcdev=0\0" \ +"mmcbootpart=2\0" \ +"mmcrootpart=5\0" \"mmcblk=/dev/mmcblk1p1\0" \"bootblock=9\0" \"ubiblock=8\0" \"ubi=enabled\0" \ -"opts=always_resume=1" +"opts=always_resume=1\0" \ +"dfu_alt_info=" CONFIG_DFU_ALT +/* Miscellaneous configurable options */ #define CONFIG_SYS_LONGHELP /* undef to save memory */@@ -211,6 +233,10 @@#define CONFIG_DOS_PARTITION 1 +/* FAT */ +#define CONFIG_CMD_FAT +#define CONFIG_FAT_WRITE +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - 0x1000000)#define CONFIG_SYS_CACHELINE_SIZE 64@@ -233,5 +259,6 @@#define CONFIG_USB_GADGET #define CONFIG_USB_GADGET_S3C_UDC_OTG #define
CONFIG_USB_GADGET_DUALSPEED
+#defineCONFIG_USB_GADGET_VBUS_DRAW2
Quoted 2 lines
#endif /*
__CONFIG_H*/
Thanks,
Minkyu Kang.