Hi Robert,

Fom my understanding when I'm booting from the SD-card opensuse is using
boot.script

See serial log (after modifications below)

*U-Boot SPL 2014.10 (Oct 20 2014 - 20:57:40)*
*spl_register_fat_device: fat register err - -1*
*spl_register_fat_device: fat register err - -1*
*spl_load_image_fat: error reading image u-boot.img, err - -1*
*spl: ext4fs_open failed*
*spl_load_image_ext_os: error reading image args, err - 0*


*U-Boot 2014.10 (Oct 20 2014 - 20:57:40)*

*       Watchdog enabled*
*I2C:   ready*
*DRAM:  512 MiB*
*NAND:  0 MiB*
*MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1*
**** Error - No Valid Environment Area found*
**** Warning - bad CRC, using default environment*

*Net:   <ethaddr> not set. Validating first E-fuse MAC*
*cpsw, usb_ether*
*Hit any key to stop autoboot:  1 ... 0 *
*switch to partitions #0, OK*
*mmc0 is current device*
*SD/MMC found on device 0*
*2211 bytes read in 9 ms (239.3 KiB/s)*
*Running bootscript from mmc0 ...*
*## Executing script at 82000000*
*switch to partitions #0, OK*
*mmc0 is current device*
*8261808 bytes read in 536 ms (14.7 MiB/s)*
*6101808 bytes read in 408 ms (14.3 MiB/s)*
*57916 bytes read in 21 ms (2.6 MiB/s)*
*Kernel image @ 0x82000000 [ 0x000000 - 0x7e10b0 ]*
*## Flattened Device Tree blob at 88000000*
*   Booting using the fdt blob at 0x88000000*
*   Using Device Tree in place at 88000000, end 8801123b*

*Starting kernel ...*

I edit the file */boot/boot.script* to use the file
/boot/dtb/am335x-boneblack-emmc-overlay.dtb
--> see yellow lines below and I commented the blue lines compare to
original file

But even with this modification I have no image on my LCD and if plugged
the HDMI screen I see the desktop on the HDMI.

Please note the file /boot/u-boot.img is still the original one from
the beaglebone
opensuse image
<http://download.opensuse.org/ports/armv7hl/distribution/13.2/appliances/>
If I use the one created with the command #*make uImage dtbs
LOADADDR=0x80008000 -j4 when I compile the kernel 4.1.6 *the system can't
start.

*linux:~ # cat /boot/boot.script*
*setenv kernel 'zImage'*
*setenv initrd 'initrd'*
*setenv fdtfile 'am335x-boneblack-emmc-overlay.dtb'*
*setenv flavor 'beaglebone'*
*setenv target 'boot'*
*setenv bootargs 'root=/dev/disk/by-id/mmc-SL16G_0x28cf527e-part2
loader=uboot disk=/dev/disk/by-id/mmc-SL16G_0x28cf527e plymouth.enable=0
console=ttyO0'*
*setenv bootdevs 'mmc'*
*setenv bootparts '${unit}:1'*
*setenv initrd_high '0xffffffff'*
*setenv fdt_high '0xffffffff'*
*setenv boottype 'bootz'*
*setenv kerneladdr '0x82000000'*
*setenv ramdiskaddr '0x88080000'*
*setenv should_use_fdt '1'*
*setenv should_load_fdt '1'*
*setenv fdtaddr '0x88000000'*
*setenv setdev 'mmc dev ${unit}'*
*setenv units '0'*
*setenv sizeprefix '0x'*
*setenv fs 'ext2'*
*test -n "$kerneladdr" || setenv kerneladdr ${kernel_addr_r}*
*test -n "$ramdiskaddr" || setenv ramdiskaddr ${ramdisk_addr_r}*
*setenv load_kernel '${fs}load ${bootdev} ${bootpart} ${kerneladdr}
${kernel}'*
*setenv load_initrd '${fs}load ${bootdev} ${bootpart} ${ramdiskaddr}
${initrd}; setenv rd_filesize ${sizeprefix}${filesize}'*

*setenv fdtfile dtb/${fdtfile}*

*#if test 1${should_load_fdt} = 11; then*
*#if test 0${fdtfile} = 0call_findfdt; then*
*#run findfdt*
*#setenv fdtfile dtb/${fdtfile}*
*#fi*
*#if test 0${fdtfile} = 0call_autodetectfdt; then*
*#run autodetectfdt*
*#setenv fdtfile dtb/${fdt_file}*
*#fi*
*#setenv loadfdt '${fs}load ${bootdev} ${bootpart} ${fdtaddr} ${fdtfile}'*
*#else*
*#setenv loadfdt ''*
*#fi*
*#if test 1${use_fdt_addr} = 11; then*

*# Calxeda systems use $fdt_addr rather than $fdtaddr*
*#setenv fdtaddr $fdt_addr*
*#fi*
*#if test 1${use_fdt_addr_r} = 11; then*
*# At least upstream rpi_b uses $fdt_addr_r rather than $fdtaddr*
*#setenv fdtaddr ${fdt_addr_r}*
*#fi*
*#if test 1${should_use_fdt} = 11; then*
*setenv boot_kernel '${boottype} ${kerneladdr}
${ramdiskaddr}:${rd_filesize} ${fdtaddr}'*
*#else*
*#setenv boot_kernel '${boottype} ${kerneladdr}
${ramdiskaddr}:${rd_filesize}'*
*#fi*
*#if test 1${remove_fdt_high} = 11; then*
*#setenv fdt_high*
*#fi*
*setenv doit 'if run load_kernel; then; run load_initrd; run loadfdt; run
boot_kernel; fi'*
*setenv bootcmd 'for bootdev in ${bootdevs}; do for unit in ${units}; do
setenv bootpart; for bootpart in ${bootparts}; do setenv fix_bootpart
"setenv bootpart*
*$bootpart"; run fix_bootpart; run setdev; run doit; done; done; done'*
*boot*



2015-08-28 0:10 GMT+02:00 Robert Nelson <robertcnel...@gmail.com>:

> On Thu, Aug 27, 2015 at 4:54 PM, matthieu claire <mclaire....@gmail.com>
> wrote:
> > Hi Robert,
> >
> > If I plugged the HDMI cable while I started the board with the LCD cape
> > connected the desktop is displayed on the HDMI output
> > On the LCD I have juste the backlight on but the touch panel is working.
> >
> > I thought the HDMI should not work with my config ?
> >
> > It looks like the file uEnv.txt is ignored
> >
> > linux:~ # cat /boot/uEnv.txt
> > dtb=am335x-boneblack-emmc-overlay.dtb
> > bone_capemgr.enable_partno=BB-BONE-LCD7-01:00A3
> >
>
> I guess that would make sense, opensuse probally has their own u-boot
> patch..
>
> stop u-boot, type "printenv" and figure out how to override
> "dtb/dtb_file/etc.."...
>
> dtb=xyz is one of my u-boot changes..
>
> Regards,
>
> --
> Robert Nelson
> https://rcn-ee.com/
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to