LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 06-19-2015, 04:20 AM   #1
manavdeep
LQ Newbie
 
Registered: Oct 2014
Posts: 3

Rep: Reputation: Disabled
Help required with u-boot customization


Hello,
I am beginner in embedded systems and I need some help here. I have a board with freescale MPC8569E processor. We have been using a 256Mb flash till now, with 2 flash chips. The memory map is as follows:
f000_0000 - f7ff_ffff (128Mb)
f800_0000 - ffff_ffff (128Mb)
Now we want to use 512Mb of flash, using 2 256Mb flash chips each, the memory map being:
e000_0000 - efff_ffff (Flash 1)
f000_0000 - ffff_ffff (Flash 2)

From what I understand from reading about modifying u-boot for one's custom board, first
1. I have to modify the LAW configuraiton. So I add the following in board/freescale/mpc8569mds/law.c
SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_512M, LAW_TRGT_IF_LBC),
Flash chip is on local bus.
I have set the Macro CONFIG_SYS_FLASH_BASE to 0xe000_0000 in include/configs/MPC8569MDS.h

2. I need to configure the chipselects for the flash
#define CONFIG_FLASH_BR_PRELIM 0xF0001011
#define CONFIG_FLASH_OR_PRELIM 0xF0006FF7
for CS0
and
#define CONFIG_SYS_BR1_PRELIM 0xE0001011
#define CONFIG_SYS_OR1_PRELIM 0xF0006FF7

I have read that CS0 should contain the chipselect of the flash containing boot-code/U-boot, so I have configured CS0 for second flash (base-address 0xf000_0000)

3. I configured the Tlbs as follows:

SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE2, CONFIG_SYS_FLASH_BASE2,MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,0, 0, BOOKE_PAGESZ_256M, 1),

and

SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, 0, 1, BOOKE_PAGESZ_256M, 1)

So I have configured the law, configured the chip-selects, configured the tlbs but the console output is nothing, blank !!! What Am I doing wrong?
 
  


Reply

Tags
embedded, linux, uboot



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Triple-Boot Your Mac with Windows and Linux, No Boot Camp Required LXer Syndicated Linux News 0 05-05-2010 09:30 AM
required system for USB boot stu7 Debian 5 12-24-2009 08:16 PM
USB Drive Linux Boot Customization lymae Linux - General 2 12-11-2006 05:38 PM
/boot partition required? ksun Fedora 4 11-12-2005 04:41 PM
HELP required for LINUX boot sasi Linux - Software 1 12-10-2001 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration