[U-Boot-Users] Design Recommendation and Help with Issues
I am running U-Boot version U-Boot 1.3.1-rc1 on my board that has a Broadcom network switch. My goal is to initialize this switch at the bootloader level and be able to tftpboot a Linux kernel from one of the ethernet ports of this switch. As _I_ understand, there are two ways to initialize the switch from u-boot. First = Theory: Link the switch driver software with the u-boot.bin and flash it on the board. Switch driver's entry point would be called somewhere in u-boot to initialize it. Size of the u-boot.bin will increase and the u-boot partition on the NOR flash will need to be updated to accommodate the new binary size. Practice: After I linked the driver software with the u-boot.bin, the board didn't boot any further after u-boot got relocated to RAM with this following message: Now running in RAM - U-Boot at: 0ff6d000 I did the following to link switch driver library (MDK_BLIBS) with u-boot in Makefile: $(obj)u-boot: . --start-group $(__LIBS) $(MDK_BLIBS)--end-group $(PLATFORM_LIBS) \ . Switch library is compiled with same TEXT_BASE and other flags as that of u-boot. Second == Theory: Build the network switch driver as a u-boot application, flash it on a free partition on the NOR and after u-boot has booted, it will somehow do the following to initialize the network switch. cp.b 0xfff9 0x4 0x5bfac go 0x00040418 Practice: The above two commands worked to initialize the switch. I still need to understand how to run these command automatically after the u-boot has booted. Questions: 1.) Which design is recommended, first or the second? Second is easier for me to implement as I don't have to change the partition sizes but could easily be overlooking some obvious problems. 2.) If the first design is recommended, I would need to resolve the u-boot-not-booting issue when the binary is compiled with switch driver. Any suggestions where to look? Thanks, Jatin - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Increasing U-Boot partition size
No, I don't think I made changes to let CPU know about this when it branches to the boot vector. After I posted this message, I learned the reset vector for the PPC architecture lies at 0xFFF00100. Does it mean the u-boot has to start at the address 0xFFF0? If not, how can I let CPU know to look for u-boot at this new address? Please let me know if it is documented somewhere. Thanks, Jatin 2008/8/4 Scott Wood [EMAIL PROTECTED]: On Fri, Aug 01, 2008 at 12:16:13PM -0500, Jatin Sharma wrote: I have to increase u-boot's partition size on my board to make room for an application to be compiled as part of u-boot binary. I am currently running u-boot version 1.3.1-rc1 and my current NOR partition is as follows: Partition Address /dev/mtd0 -RCW, 64k 0xFF80 /dev/mtd1 Kernel 2M0xFF81 /dev/mtd2 cramfs 4.8M 0xFFA1 /dev/mtd3 U-Boot 384K 0xFFF0 /dev/mtd4 Env 64K 0xFFF6 /dev/mtd5 EnvB 64K 0xFFF7 /dev/mtd6 DTB 64K 0xFFF9 I have updated to Flattened Device Tree to reflect the new partition as follows. Also, I have updated the TEXT_BASE to 0xFFE6 in the config.mk under board/my board directory. Partition Address /dev/mtd0 -RCW, 64k 0xFF80 /dev/mtd1 Kernel 2M0xFF81 /dev/mtd2 cramfs 4.3M 0xFFA1 /dev/mtd3 U-Boot 1M 0xFFE6 /dev/mtd4 Env 64K 0xFFF6 /dev/mtd5 EnvB 64K 0xFFF7 /dev/mtd6 DTB 64K 0xFFF9 U-Boot binary with the updated FDT doesn't boot. You changed the address where u-boot starts. Does the CPU know about this when it branches to the boot vector? -Scott - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] Increasing U-Boot partition size
I have Freescale MPC8347. Can you confirm that I have to have U-Boot start at 0xFFF0? Thanks, Jatin 2008/8/4 Scott Wood [EMAIL PROTECTED]: Jatin Sharma wrote: After I posted this message, I learned the reset vector for the PPC architecture lies at 0xFFF00100. Well, it depends on what kind of PPC chip... Does it mean the u-boot has to start at the address 0xFFF0? Yes (or possibly zero, if the RCW is set appropriately). If not, how can I let CPU know to look for u-boot at this new address? You edit the VHDL/Verilog. :-) -Scott - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
[U-Boot-Users] Increasing U-Boot partition size
I have to increase u-boot's partition size on my board to make room for an application to be compiled as part of u-boot binary. I am currently running u-boot version 1.3.1-rc1 and my current NOR partition is as follows: Partition Address /dev/mtd0 -RCW, 64k 0xFF80 /dev/mtd1 Kernel 2M0xFF81 /dev/mtd2 cramfs 4.8M 0xFFA1 /dev/mtd3 U-Boot 384K 0xFFF0 /dev/mtd4 Env 64K 0xFFF6 /dev/mtd5 EnvB 64K 0xFFF7 /dev/mtd6 DTB 64K 0xFFF9 I have updated to Flattened Device Tree to reflect the new partition as follows. Also, I have updated the TEXT_BASE to 0xFFE6 in the config.mk under board/my board directory. Partition Address /dev/mtd0 -RCW, 64k 0xFF80 /dev/mtd1 Kernel 2M0xFF81 /dev/mtd2 cramfs 4.3M 0xFFA1 /dev/mtd3 U-Boot 1M 0xFFE6 /dev/mtd4 Env 64K 0xFFF6 /dev/mtd5 EnvB 64K 0xFFF7 /dev/mtd6 DTB 64K 0xFFF9 U-Boot binary with the updated FDT doesn't boot. So, I need to understand what other updates I need to make for U-Boot to use this new partition. I would like to know if there are standard hooks in u-boot to incorporate partition changes that may be documented somewhere. My board is powerpc architecture and is using NOR flash to boot u-boot. Any help is appreciated. I can provide more information if needed. Thanks, Jatin - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users