[U-Boot-Users] Patch for NAND Booting on SMDK2410

Hi folks,
here is a patch to enable U-Boot 1.0 to boot from NAND/SmartMedia cards. smdk2410.h must include the line '#define CONFIG_BOOT_NAND 1" and the resulting u-boot.bin must be copied to the first SmartMedia sectors (with a JTAG tool for example). The first sector of the SmartMedia card should also be marked as "Defect". With J33 and J34 closed the board should then boot from SmartMedia.
This first version is very simple as U-Boot is linear on the SmartMedia and don't allows a filesystem. Later version may include placing U-Boot on a filesystem.
This patch also includes code for clearing the BSS segment. This is not the same code Larsen submitted this morning :-(
Bye,

Howdy Markus,
I've taken a look at your patch and board/smdk2410/nandboot.S appears to be missing. Was it your intention to add this file, have I missed something from earlier on in the list, or will I need to create this myself?
Thanks.
-- Matt Matoushek
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of Markus Pietrek Sent: Friday, January 09, 2004 8:18 AM To: u-boot-users@lists.sourceforge.net Cc: David Müller (ELSOFT AG) Subject: [U-Boot-Users] Patch for NAND Booting on SMDK2410
Hi folks,
here is a patch to enable U-Boot 1.0 to boot from NAND/SmartMedia cards.
smdk2410.h must include the line '#define CONFIG_BOOT_NAND 1" and the resulting u-boot.bin must be copied to the first SmartMedia sectors (with a JTAG tool for example). The first sector of the SmartMedia card should also be marked as "Defect". With J33 and J34 closed the board should then boot from SmartMedia.
This first version is very simple as U-Boot is linear on the SmartMedia and don't allows a filesystem. Later version may include placing U-Boot on a
filesystem.
This patch also includes code for clearing the BSS segment. This is not the same code Larsen submitted this morning :-(
Bye,

Hi,
I've taken a look at your patch and board/smdk2410/nandboot.S appears to be missing. Was it your intention to add this file, have I missed something from earlier on in the list, or will I need to create this myself?
Oops, sorry. As this file didn't exist originally, my "cvs diff -c -D" must have skipped this file. Here it is.
Bye,

Howdy Markus and u-boot users,
Oops, sorry. As this file didn't exist originally, my "cvs diff -c -D" must have skipped this file. Here it is.
Thanks. That helps. Now I'm curious as to how you are using this new functionality. I am developing a platform based on the s3c2410 and have been using U-boot (booting from NOR) as a development boot-loader since I can easily tftp new code, file systems, etc.
For production use I have intended on using a modification of the ADAM boot-loader provided by Samsung, mainly because CFG_CMD_NAND isn't implemented yet in U-boot for the smdk2410. The NAND boot patch gives me a potential alternative.
Am I correct about status of CFG_CMD_NAND for u-boot and the smdk2410? If I am correct, is there anyone out there working on this? If so, would you like any help with that development?
-- Matt Matoushek
Invocon, Inc. www.invocon.com 281-292-9903 mmatoushek@invocon.com

Hi Matt,
Thanks. That helps. Now I'm curious as to how you are using this new functionality. I am developing a platform based on the s3c2410 and have been using U-boot (booting from NOR) as a development boot-loader since I can easily tftp new code, file systems, etc.
We are also developing a board based on the s3c2410 but intended to use only NAND flash. With this patch I demonstrated that we are able to boot from it. But I haven't started yet to port cmd_nand.c to the s3c2410 hardware nand support feature. This will come up in about two months again.
cmd_nand.c though needs to be rewritten, mainly the commands NanD_Command, NaND_Address, nand_write_ecc, nand_read_oob etc.
Bye,

Dear Markus,
in message 200401091518.14181.maillist@fsforth.de you wrote:
here is a patch to enable U-Boot 1.0 to boot from NAND/SmartMedia cards. smdk2410.h must include the line '#define CONFIG_BOOT_NAND 1" and the resulting u-boot.bin must be copied to the first SmartMedia sectors (with a JTAG tool for example). The first sector of the SmartMedia card should also be marked as "Defect". With J33 and J34 closed the board should then boot from SmartMedia.
This first version is very simple as U-Boot is linear on the SmartMedia and don't allows a filesystem. Later version may include placing U-Boot on a filesystem.
This patch also includes code for clearing the BSS segment. This is not the same code Larsen submitted this morning :-(
Can you please re-submit your patch after syncing against the CVS tree? I checked in Anders Larsens patch, which broke yours. Please make sure to include nandboot.S in the new patch.
Thanks a lot.
Best regards,
Wolfgang Denk
participants (4)
-
Markus Pietrek
-
Markus Pietrek
-
Matt Matoushek
-
Wolfgang Denk