[U-Boot-Users] [PATCH] Fill in remaining MTD driver data for OneNAND

2008-08-05 Thread Fathi BOUDRA
Fill in remaining MTD driver data for OneNAND. Review onenand_print_device_info(): - Return device info to fill mtd device name. - Remove verbose parameter as it become useless. Signed-off-by: Fathi Boudra [EMAIL PROTECTED] --- diff --git a/common/cmd_onenand.c b/common/cmd_onenand.c index

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Albert ARIBAUD
Wolfgang Denk a écrit : That's why I think we should have an explicit builtin command, i. e. command with the name builtin that will always run the corresponding builtin command, no if there is a command alias or not - similar to the bash command ... and make sure that one can *never* define

[U-Boot-Users] [PATCH] JFFS2 command support on OneNAND (take #3)

2008-08-05 Thread Fathi BOUDRA
JFFS2 command support on OneNAND. - Fix typo. - Fix nand_bbt_descr redefinition when NAND and OneNAND are enabled. Since last comments: - Add some CONFIG_CMD_ONENAND to prevent adding new code. - Fix line too long. - Revert mtd device types definition. TODO: Use NAND command interface (e.g.:

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: That would be REALLY cool! It would take some initial work, but the reward would be really simple and transparent expandability for the command set. As with the bootm command, we might end up with simpler code (I don't think too many commands are

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Jerry Van Baren
Wolfgang Denk wrote: In message [EMAIL PROTECTED] you wrote: My current best thought is to create a new boot simple (boots? bootsm?) command that contains only the essence of bootm. I would then change the command bootm to do a hush script run of the env variable bootm (i.e. the command

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Jerry Van Baren
Kumar Gala wrote: If we really want to simplify what bootm does than I think we should remove ft_board_setup() from lib_ppc/bootm.c and expect any actually modification of the device tree to have already occurred. Is this something we'd really be willing to do? - k I don't think so.

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: My current best thought is to create a new boot simple (boots? bootsm?) command that contains only the essence of bootm. I would then change the command bootm to do a hush script run of the env variable bootm (i.e. the command bootm would really

Re: [U-Boot-Users] [PATCH] JFFS2 command support on OneNAND (take #2)

2008-08-05 Thread Fathi BOUDRA
Hi, TODO: Use NAND command interface (e.g.: part_validate_*nand()). Do you mean merging the NAND and OneNAND versions of the jffs2 code, through the (mostly already existing) function pointer interface? yes, as you suggested to kyungmin: use mtd_info function pointer interface. I'd

Re: [U-Boot-Users] [PATCH] POWERPC: Change 86xx platforms to use CONFIG_NR_CPUS

2008-08-05 Thread Andy Fleming
On Mon, Aug 4, 2008 at 9:02 PM, Becky Bruce [EMAIL PROTECTED] wrote: Currently, they use CONFIG_NUM_CPUS, which is different than 85xx for no good reason. --- a/include/configs/MPC8610HPCD.h +++ b/include/configs/MPC8610HPCD.h @@ -17,7 +17,7 @@ #define CONFIG_MPC86xx 1 /*

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Jerry Van Baren
Wolfgang Denk wrote: One minor flaw, I don't see how bootm the env script could run bootm the built-in command, because it would instead recursively run bootm the env script if scripts have higher priority and the command line bootm would run the built-in bootm if scripts have lower

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Kumar Gala
On Aug 5, 2008, at 5:19 AM, Wolfgang Denk wrote: In message [EMAIL PROTECTED] you wrote: My current best thought is to create a new boot simple (boots? bootsm?) command that contains only the essence of bootm. I would then change the command bootm to do a hush script run of the env

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: That's why I think we should have an explicit builtin command, i. e. command with the name builtin that will always run the corresponding builtin command, no if there is a command alias or not - similar to the bash command ... and make sure that

Re: [U-Boot-Users] [PATCH 2/7 v3] NAND_CMD_READOOB is not supported by all chips, read OOB with the page instead

2008-08-05 Thread Guennadi Liakhovetski
On Mon, 4 Aug 2008, Scott Wood wrote: On Mon, Aug 04, 2008 at 02:45:33PM +0200, Guennadi Liakhovetski wrote: I _think_ this should work with all NAND chips. Otherwise we might have to introduce a configuration variable. Which small-page NAND chips can't handle READOOB? On large page

[U-Boot-Users] [PATCH 0/7 v5] SMDK6400 support

2008-08-05 Thread Guennadi Liakhovetski
Version 5: This time based on nand-flash/testing head. Therefore it couldn't be runtime-tested: largepage support in nand_spl is broken there ATM. Otherwise all comments have been taken care of. After nand_spl is fixed for largepage NAND devices, this will be tested, if needed, v6 will be

[U-Boot-Users] [PATCH 1/7 v5] Add definition for the AM29LV800BB AMD NOR-flash

2008-08-05 Thread Guennadi Liakhovetski
Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] --- drivers/mtd/jedec_flash.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c index 9845e93..020647a 100644 --- a/drivers/mtd/jedec_flash.c +++

[U-Boot-Users] [PATCH 2/7 v5] Simplify reading of the bad-block marker, use chipselect

2008-08-05 Thread Guennadi Liakhovetski
We have to read a whole page on large-page NAND chips, at least the chip installed on SMDK6400 can only read whole pages with READ0. Also activate chipselect before using the chip, and deactivate it afterwards. Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] --- nand_spl/nand_boot.c |

[U-Boot-Users] [PATCH 4/7 v5] USB: Add support for OHCI controller on S3C6400

2008-08-05 Thread Guennadi Liakhovetski
Notice: USB on S3C6400 currently works _only_ with switched off MMU. One could try to enable the MMU, but map addresses 1-to-1, and disable data cache, then it should work too and we could still profit from instruction cache. Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] ---

[U-Boot-Users] [PATCH 5/7 v5] serial: add S3C64XX serial driver

2008-08-05 Thread Guennadi Liakhovetski
Based on the original S3C64XX UART driver by Samsung for U-Boot 1.1.6. Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] --- drivers/serial/Makefile |1 + drivers/serial/s3c64xx.c | 197 ++ 2 files changed, 198 insertions(+), 0 deletions(-)

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Jerry Van Baren
Kumar Gala wrote: On Aug 5, 2008, at 5:19 AM, Wolfgang Denk wrote: [snip] One idea that has been spinning in my mind for some time is to make the run command to execute the content of an environment variable optional. Instead, we could try and handle environment variable names similar

[U-Boot-Users] [PATCH 6/7 v5] NAND: add NAND driver for S3C64XX

2008-08-05 Thread Guennadi Liakhovetski
Based on the original S3C64XX NAND driver by Samsung for U-Boot 1.1.6. Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/s3c64xx.c | 305 2 files changed, 306 insertions(+), 0

[U-Boot-Users] [PATCH 7/7 v5] ARM: Add support for S3C6400 based SMDK6400 board

2008-08-05 Thread Guennadi Liakhovetski
SMDK6400 can only boot U-Boot from NAND-flash. This patch adds a nand_spl driver for it too. The board can also boot from the NOR flash, but due to hardware limitations it can only address 64KiB on it, which is not enough for U-Boot. Based on the original sources by Samsung for U-Boot 1.1.6.

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Albert ARIBAUD
Wolfgang Denk a écrit : In message [EMAIL PROTECTED] you wrote: That's why I think we should have an explicit builtin command, i. e. command with the name builtin that will always run the corresponding builtin command, no if there is a command alias or not - similar to the bash command ...

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Kumar Gala
On Aug 5, 2008, at 8:36 AM, Jerry Van Baren wrote: Kumar Gala wrote: On Aug 5, 2008, at 5:19 AM, Wolfgang Denk wrote: [snip] One idea that has been spinning in my mind for some time is to make the run command to execute the content of an environment variable optional. Instead,

[U-Boot-Users] simplify bootm command -- deprecated or removing functionality?

2008-08-05 Thread Kumar Gala
Can we drop any functionality from the current bootm? For example does powerpc still need to support bd_t based booting? - k - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest

[U-Boot-Users] outline of bootm script

2008-08-05 Thread Kumar Gala
here's a rough start at an outline for the bootm script based on the code (I've only outlined the Linux/PPC boot case its seems the most complicated). One of the first things we clearly need is a imload command. Thoughts on the various disable_{interrupts, usb, caches} ? - k bootm

Re: [U-Boot-Users] simplify bootm command -- deprecated or removing functionality?

2008-08-05 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: Can we drop any functionality from the current bootm? Any? You mean: int bootm (...) { return 0; } :-) For example does powerpc still need to support bd_t based booting? Yes, of course we need this. There is

Re: [U-Boot-Users] simplify bootm command -- deprecated or removing functionality?

2008-08-05 Thread Kumar Gala
On Aug 5, 2008, at 9:45 AM, Wolfgang Denk wrote: In message [EMAIL PROTECTED] you wrote: Can we drop any functionality from the current bootm? Any? You mean: int bootm (...) { return 0; } :-) if it were only so easy :) For example does powerpc

Re: [U-Boot-Users] [PATCH 2/7 v3] NAND_CMD_READOOB is not supported by all chips, read OOB with the page instead

2008-08-05 Thread Scott Wood
On Tue, Aug 05, 2008 at 03:08:04PM +0200, Guennadi Liakhovetski wrote: It's a large-page device. And, as far as I understand the datasheet, to read data at arbitrary offset in a page, you first have to issue a READ PAGE (READ0) for _the_ _whole_ page, then you can use RANDOM DATA READ to

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Kumar Gala
On Aug 5, 2008, at 8:36 AM, Jerry Van Baren wrote: Kumar Gala wrote: On Aug 5, 2008, at 5:19 AM, Wolfgang Denk wrote: [snip] One idea that has been spinning in my mind for some time is to make the run command to execute the content of an environment variable optional. Instead,

Re: [U-Boot-Users] [PATCH 0/7 v5] SMDK6400 support

2008-08-05 Thread Scott Wood
On Tue, Aug 05, 2008 at 03:36:33PM +0200, Guennadi Liakhovetski wrote: Version 5: This time based on nand-flash/testing head. Therefore it couldn't be runtime-tested: largepage support in nand_spl is broken there ATM. Hmm, so it is. I don't have hardware that uses the cmd_ctrl interface to

Re: [U-Boot-Users] [PATCH 0/7 v5] SMDK6400 support

2008-08-05 Thread Guennadi Liakhovetski
On Tue, 5 Aug 2008, Scott Wood wrote: On Tue, Aug 05, 2008 at 03:36:33PM +0200, Guennadi Liakhovetski wrote: Version 5: This time based on nand-flash/testing head. Therefore it couldn't be runtime-tested: largepage support in nand_spl is broken there ATM. Hmm, so it is. I don't have

Re: [U-Boot-Users] [PATCH 2/7 v5] Simplify reading of the bad-block marker, use chipselect

2008-08-05 Thread Scott Wood
On Tue, Aug 05, 2008 at 03:36:43PM +0200, Guennadi Liakhovetski wrote: /* - * offs has to be aligned to a block address! + * offs has to be aligned to a page address! */ block = offs / CFG_NAND_BLOCK_SIZE; + /* Recalculate offs as an offset inside a block */

Re: [U-Boot-Users] [PATCH 2/7 v3] NAND_CMD_READOOB is not supported by all chips, read OOB with the page instead

2008-08-05 Thread Guennadi Liakhovetski
On Tue, 5 Aug 2008, Scott Wood wrote: On Tue, Aug 05, 2008 at 03:08:04PM +0200, Guennadi Liakhovetski wrote: It's a large-page device. And, as far as I understand the datasheet, to read data at arbitrary offset in a page, you first have to issue a READ PAGE (READ0) for _the_ _whole_

Re: [U-Boot-Users] [PATCH 2/7 v3] NAND_CMD_READOOB is not supported by all chips, read OOB with the page instead

2008-08-05 Thread Scott Wood
Guennadi Liakhovetski wrote: On Tue, 5 Aug 2008, Scott Wood wrote: Are you saying that your NAND chip can't read the OOB by issuing READ0 with the appropriate column address? Which chip is this, and where can I find a manual? At least, this is how I understood it, I might be wrong though:

[U-Boot-Users] [PATCH] FIT: Fix handling of images without ramdisks

2008-08-05 Thread Peter Tyser
boot_get_ramdisk() should not treat the case when a FIT image does not contain a ramdisk as an error. Signed-off-by: Peter Tyser [EMAIL PROTECTED] --- The original code would not allow booting of a FIT image which didn't contain a ramdisk. The bug was observed and fixed on a powerpc 85xx

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Jerry Van Baren
Kumar Gala wrote: On Aug 5, 2008, at 8:36 AM, Jerry Van Baren wrote: Kumar Gala wrote: On Aug 5, 2008, at 5:19 AM, Wolfgang Denk wrote: [snip] What do you think? While this is a cleaner implementation of what I've implemented w/ ft_env_setup() it still doesn't completely solve my

Re: [U-Boot-Users] simplify bootm command

2008-08-05 Thread Kumar Gala
[snip] As I look at this more and more I think trying to re-encode the control flow of the bootm command in a script is just insane. There are too many special cases we have to deal with that we'd just being moving from C code into the script. My assumption is that a given

Re: [U-Boot-Users] [PATCH] Fill in remaining MTD driver data for OneNAND

2008-08-05 Thread Scott Wood
On Tue, Aug 05, 2008 at 11:06:28AM +0200, Fathi BOUDRA wrote: -void onenand_print_device_info(int device, int verbose) +char * onenand_print_device_info(int device) { int vcc, demuxed, ddp, density; - - if (!verbose) - return; + char *dev_info; vcc =

[U-Boot-Users] [PATCH v2] fdt: add fdtcmd env var to allow post processing of device tree before boot

2008-08-05 Thread Kumar Gala
Added the 'fdtcmd' environment variable as a way to provide 'fdt' commands that the user can supply to manipulate the device tree after ft_board_setup() and before the tree is handled to the kernel. The idea is that users may want to add or manipulate nodes w/changing the u-boot binary. The

Re: [U-Boot-Users] [PATCH v2] fdt: add fdtcmd env var to allow post processing of device tree before boot

2008-08-05 Thread Kumar Gala
On Aug 5, 2008, at 11:50 AM, Kumar Gala wrote: Added the 'fdtcmd' environment variable as a way to provide 'fdt' commands that the user can supply to manipulate the device tree after ft_board_setup() and before the tree is handled to the kernel. The idea is that users may want to add or

Re: [U-Boot-Users] [PATCH] NAND boot: Update large page support for current API.

2008-08-05 Thread Guennadi Liakhovetski
On Tue, 5 Aug 2008, Scott Wood wrote: Also, remove the ctrl variable in favor of passing the constants directly, and remove redundant (u8) casts. Signed-off-by: Scott Wood [EMAIL PROTECTED] --- This patch is untested, as I don't have the hardware. Applied to u-boot-nand-flash/testing.

Re: [U-Boot-Users] [PATCH] POWERPC: Change 86xx platforms to use CONFIG_NR_CPUS

2008-08-05 Thread Becky Bruce
On Aug 5, 2008, at 7:03 AM, Andy Fleming wrote: On Mon, Aug 4, 2008 at 9:02 PM, Becky Bruce [EMAIL PROTECTED] wrote: Currently, they use CONFIG_NUM_CPUS, which is different than 85xx for no good reason. --- a/include/configs/MPC8610HPCD.h +++ b/include/configs/MPC8610HPCD.h @@ -17,7

Re: [U-Boot-Users] [PATCH v2] fdt: add fdtcmd env var to allow post processing of device tree before boot

2008-08-05 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: Added the 'fdtcmd' environment variable as a way to provide 'fdt' commands that the user can supply to manipulate the device tree after ft_board_setup() and before the tree is handled to the kernel. The idea is that users may want to add or manipulate

[U-Boot-Users] [RFC][WIP] ePAPR boot and provide a mechanism to disable ft board setup

2008-08-05 Thread Kumar Gala
Is this something we'd be willing to put into mainline? - k diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c index a872d31..3ebddd3 100644 --- a/lib_ppc/bootm.c +++ b/lib_ppc/bootm.c @@ -192,7 +192,8 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[], } #ifdef

Re: [U-Boot-Users] [RFC][WIP] ePAPR boot and provide a mechanism to disable ft board setup

2008-08-05 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: Is this something we'd be willing to put into mainline? Definitely not as is. These are two unrelated changes, so please split this up into two separate patches so we can decide independently. Best regards, Wolfgang Denk -- DENX Software Engineering

[U-Boot-Users] NFS TFTP problem

2008-08-05 Thread cjjoy1980
I have enabled nfs booting on ppc based embedded board. I had placed my kernel and rootfs in tftp directory, and had set the u-boot enivironment varialbes as: setenv bootfile /image/kernel setenv root_path /tftpboot/image The board was booting with this configuration... Now I have

Re: [U-Boot-Users] outline of bootm script

2008-08-05 Thread Jerry Van Baren
Kumar Gala wrote: here's a rough start at an outline for the bootm script based on the code (I've only outlined the Linux/PPC boot case its seems the most complicated). One of the first things we clearly need is a imload command. Thoughts on the various disable_{interrupts, usb,

[U-Boot-Users] [PATCH] mpc5121: squash some fdt fixup errors

2008-08-05 Thread John Rigby
On ADS5121 when booting linux the following errors are seen: Unable to update property /[EMAIL PROTECTED]:bus-frequency, err=FDT_ERR_NOTFOUND Unable to update property /[EMAIL PROTECTED]/[EMAIL PROTECTED]:local-mac-address, err=FDT_ERR_NOTFOUND Unable to update property /[EMAIL

Re: [U-Boot-Users] NFS TFTP problem

2008-08-05 Thread Ben Warren
On Tue, Aug 5, 2008 at 7:24 PM, cjjoy1980 [EMAIL PROTECTED] wrote: I have enabled nfs booting on ppc based embedded board. I had placed my kernel and rootfs in tftp directory, and had set the u-boot enivironment varialbes as: setenv bootfile /image/kernel setenv root_path