public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 12/12] am335x, shc: add support for the am335x based bosch shc board
Date: Mon, 23 May 2016 14:56:04 +0200	[thread overview]
Message-ID: <5742FDE4.2080607@denx.de> (raw)
In-Reply-To: <20160520194937.GH7650@bill-the-cat>

Hello Tom,

Am 20.05.2016 um 21:49 schrieb Tom Rini:
> On Wed, May 18, 2016 at 04:18:38PM +0200, Heiko Schocher wrote:
>
>> U-Boot SPL 2016.03-rc3-00019-g6dfb4c2-dirty (Mar 09 2016 - 07:40:06)
>> SHC C3-Sample
>> MPU reference clock runs at 6 MHz
>> Setting MPU clock to 594 MHz
>> Enabling Spread Spectrum of 18 permille for MPU
>> Trying to boot from MMC
>> reading u-boot.img
>> reading u-boot.img
>>
>> U-Boot 2016.03-rc3-00019-g6dfb4c2-dirty (Mar 09 2016 - 07:05:35 +0100)
>>
>>         Watchdog enabled
>> I2C:   ready
>> DRAM:  512 MiB
>> reloc off 1f783000
>> MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
>> Net:   cpsw
>> U-Boot#
>>
>> Signed-off-by: Heiko Schocher <hs@denx.de>
>>
>> ---
>> This patch drops the following checkpatch warnings:
>>
>> warning: please write a paragraph that describes the config symbol fully
>>    I wrote a help ... I do not understand, whats missing here...
>>
>> warning: line over 80 characters
>>    On places where I think this does not disturb...
>>
>>    Patch:
>>    http://permalink.gmane.org/gmane.comp.boot-loaders.u-boot/259522
>>    is needed for clean compiling.
>
> We need to find some other way to solve this or move all of the
> partition stuff to Kconfig as well so we can default some stuff on and
> then turn it off in cases.

Ok ... hmm... moving to Kconfig seems the best option to me ...
tools/moveconfig is running ... moved
CONFIG_PARTITIONS
CONFIG_DOS_PARTITION
CONFIG_ISO_PARTITION
CONFIG_MAC_PARTITION
CONFIG_EFI_PARTITION

to Kconfig ... I add this patch to v2 ...

Hmm... rebased this patchset to current mainline and it fails working :-(

one error is fixed with patch:
http://patchwork.ozlabs.org/patch/624267/

but there is another mmc based error, as the board prints:

U-Boot SPL 2016.05-00135-g6202e44 (May 23 2016 - 14:54:16)
SHC
MPU reference clock runs at 6 MHz
Setting MPU clock to 594 MHz
Enabling Spread Spectrum of 18 permille for MPU
Trying to boot from MMC2
** Partition 1 not valid on device 1 **
spl_register_fat_device: fat register err - -1
spl_load_image_fat: error reading image u-boot.img, err - -1
spl: no partition table found
SPL: failed to boot from all boot devices

"git bisect" says:
$ git bisect bad
4b6e1fda107e5244e80ebc41865650ac2873dc88 is the first bad commit
$ git show 4b6e1fda107e5244e80ebc41865650ac2873dc88
commit 4b6e1fda107e5244e80ebc41865650ac2873dc88
Merge: 27bec5c 341392d
Author: Tom Rini <trini@konsulko.com>
Date:   Tue May 17 13:58:27 2016 -0400

     Merge git://git.denx.de/u-boot-dm

Seems in SPL it fails detecting the eMMC ... any hints?

>> +config 	
>> +	int "UART used for console"
>> +	range 1 6
>> +	default 1
>> +	help
>> +	  The AM335x SoC has a total of 6 UARTs (UART0 to UART5 as referenced
>> +	  in documentation, etc) available to it. The SHC board uses UART1
>> +	  for the console.
>
> Can you really have console on the other locations?  On the AM335x EVM,
> it was possible, and doubly so with people making RS232 capes for
> Beaglebones.  That's why it's exposed there.

You are right, removed.

>> +int do_panic(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>> +{
>> +	hang_bosch("u-boot: uImage not found", 4);
>> +
>> +	/*NOTREACHED*/
>> +	return 0;
>> +}
>> +
>> +U_BOOT_CMD(
>> +	panic, 1, 0,    do_panic,
>> +	"Hang the CPU - Panic!",
>> +	""
>> +);
>
> No more commands in board directories, and we should be able to do this
> generically.  In fact, we should already be able to make fail to boot
> Linux fatal which I gather is what this is used for.

Yes, removed.

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

      reply	other threads:[~2016-05-23 12:56 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18 14:18 [U-Boot] [PATCH v1 00/12] am335x: add support for the am335x based bosch shc board Heiko Schocher
2016-05-18 14:18 ` [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option Heiko Schocher
2016-05-18 16:29   ` Stephen Warren
2016-05-19  2:59   ` Viresh Kumar
2016-05-19  5:22     ` Heiko Schocher
2016-05-19  5:46       ` Viresh Kumar
2016-05-20 13:09   ` Tom Rini
2016-05-20 13:19     ` Daniel Schwierzeck
2016-05-20 15:24       ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 02/12] tests: py: disable main_signon check for printenv cmd Heiko Schocher
2016-05-18 16:37   ` Stephen Warren
2016-06-16 17:09     ` Stephen Warren
2016-05-18 14:18 ` [U-Boot] [PATCH v1 03/12] power, tps65217: add some defines Heiko Schocher
2016-05-20 19:48   ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 04/12] arm, am335x: add some missing GPIO register definitions Heiko Schocher
2016-05-20 19:48   ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 05/12] am335x: add some missing CM_CLKMODE_DPLL_SSC macros Heiko Schocher
2016-05-20 19:48   ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 06/12] arm, am335x: Enable Spread Spectrum for the MPU Heiko Schocher
2016-05-20 19:48   ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 07/12] bootstage: call show_boot_progress also in SPL Heiko Schocher
2016-05-19  4:02   ` Simon Glass
2016-05-18 14:18 ` [U-Boot] [PATCH v1 08/12] mmc: revert mmc: Handle switch error status bit in MMC card status Heiko Schocher
2016-05-18 14:18 ` [U-Boot] [PATCH v1 09/12] mmc: omap_hsmmc: enable 8bit interface for eMMC for AM33xx Heiko Schocher
2016-05-20 19:49   ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 10/12] armv7: omap-common: make SPL board_mmc_init() weak Heiko Schocher
2016-05-18 14:18 ` [U-Boot] [PATCH v1 11/12] doc, spl, am335x: update am335x-network Heiko Schocher
2016-05-20 19:49   ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 12/12] am335x, shc: add support for the am335x based bosch shc board Heiko Schocher
2016-05-20 19:49   ` Tom Rini
2016-05-23 12:56     ` Heiko Schocher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5742FDE4.2080607@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox