From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-2?Q?=A3ukasz_Da=B3ek?= Date: Thu, 20 Sep 2012 01:36:11 +0200 Subject: [U-Boot] [PATCH 1/6] h2200: Add support for iPAQ h2200 In-Reply-To: <201209200125.11940.marex@denx.de> References: <1348083538-16123-1-git-send-email-luk0104@gmail.com> <201209200109.12888.marex@denx.de> <505A532F.2040005@gmail.com> <201209200125.11940.marex@denx.de> Message-ID: <505A56EB.9010806@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20.09.2012 01:25, Marek Vasut wrote: > Dear ?ukasz Da?ek, > >> On 20.09.2012 01:09, Marek Vasut wrote: >>> Dear ?ukasz Da?ek, >>> >>>> On 20.09.2012 00:56, Marek Vasut wrote: >>>>>> That's why I use directive .word 0xea0003fe >>>>> Check some arm instruction quick ref for what 0xea0003fe really is and >>>>> if it really is necessary or anything else work just fine as well. >>>> 0xea0003fe is a branch instruction. 0x3fe is an offset (0x3fe<< 2 + 8 = >>>> 0x1000) >>>> And I will left it. Bootloader checks for 4 bytes which have to be equal >>>> 0xfe, 0x03, 0x00, 0xea and for 4 bytes at the offset 0x40 which have to >>>> be equal E, C, E, C >>> It checks the branch instruction? What a piece of crap ... can't you >>> replace it as well? >> I can't. I would have to prepare sth like x-loader used in ti omap >> processors. > What? Why? h2200 uses companion chip from Samsung. When device is powered on chip loads 16kb of flash into internal SRAM and PXA executes it. That program is 1st stage bootloader. But u-boot for my device has ~180kb. So it's to big for SRAM. >> And I want to add driver for sdcard and flash and keyboard and lcd would be >> nice... So I will left it as it is for now. > these drivers are already in uboot I haven't seen any MediaQ 1178 drivers (LCD). Also SD card and FLASH controllers are embedded in companion chip. Chip is based on S3C440 (or 410?) processor but needs some tweaks and tests. ?ukasz Da?ek