I realised I had to generate the corresponding boot.scr with the command

*linux:/boot #mkimage -C none -A arm -T script -d boot.script boot.scr*
*Image Name:*
*Created:      Tue Sep  1 16:37:53 2015*
*Image Type:   ARM Linux Script (uncompressed)*
*Data Size:    2228 Bytes = 2.18 kB = 0.00 MB*
*Load Address: 00000000*
*Entry Point:  00000000*
*Contents:*
*   Image 0: 2220 Bytes = 2.17 kB = 0.00 MB*

But even after when I reboot I have no image on the LCD
the backlight turns ON after I load the module before starting Xserver

[   54.444590] bone_capemgr bone_capemgr: part_number 'BB-BONE-LCD7-01',
version '00A3'
[   54.444632] bone_capemgr bone_capemgr: slot #4: override
[   54.444650] bone_capemgr bone_capemgr: Using override eeprom data at
slot 4
[   54.444668] bone_capemgr bone_capemgr: slot #4: 'Override Board
Name,00A3,Override Manuf,BB-BONE-LCD7-01'
[   54.536700] bone_capemgr bone_capemgr: slot #4: dtbo
'BB-BONE-LCD7-01-00A3.dtbo' loaded; overlay id #0

But also no image on the HDMI the X server can't find fb0 device
See Xorg.0.log below

Please not I'm using the following conf

*linux:~ # cat /etc/X11/xorg.conf*
*Section "Monitor"*
*        Identifier      "Builtin Default Monitor"*
*EndSection*
*Section "Device"*
*        Identifier      "Builtin Default fbdev Device 0"*
*        Driver          "fbdev"*
*#        Driver          "modesetting"*
*EndSection*
*Section "Screen"*
*        Identifier      "Builtin Default fbdev Screen 0"*
*        Device          "Builtin Default fbdev Device 0"*
*        Monitor         "Builtin Default Monitor"*
*        DefaultDepth    16*
*#Chipsee lcd7 bbb-exp-c:*
*#        DefaultDepth    24*
*EndSection*
*Section "ServerLayout"*
*        Identifier      "Builtin Default Layout"*
*        Screen          "Builtin Default fbdev Screen 0"*
*EndSection*

*linux:~ # cat /var/log/Xorg.0.log*
*[    50.857]*
*X.Org X Server 1.16.1*
*Release Date: 2014-09-21*
*[    50.858] X Protocol Version 11, Revision 0*
*[    50.858] Build Operating System: openSUSE SUSE LINUX*
*[    50.858] Current Operating System: Linux linux.site 4.1.6 #1 SMP
PREEMPT Sun Aug 23 16:43:56 UTC 2015 armv7l*
*[    50.858] Kernel command line:
root=/dev/disk/by-id/mmc-SL16G_0x28cf527e-part2 loader=uboot
disk=/dev/disk/by-id/mmc-SL16G_0x28cf527e plymouth.enable=0 console=ttyO0*
*[    50.858] Build Date: 12 June 2015  07:53:26PM*
*[    50.858]*
*[    50.858] Current version of pixman: 0.32.6*
*[    50.859]    Before reporting problems, check http://wiki.x.org
<http://wiki.x.org>*
*        to make sure that you have the latest version.*
*[    50.859] Markers: (--) probed, (**) from config file, (==) default
setting,*
*        (++) from command line, (!!) notice, (II) informational,*
*        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.*
*[    50.866] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan  1
00:00:33 2000*
*[    50.870] (==) Using config file: "/etc/X11/xorg.conf"*
*[    50.870] (==) Using config directory: "/etc/X11/xorg.conf.d"*
*[    50.870] (==) Using system config directory
"/usr/share/X11/xorg.conf.d"*
*[    50.873] (==) ServerLayout "Builtin Default Layout"*
*[    50.873] (**) |-->Screen "Builtin Default fbdev Screen 0" (0)*
*[    50.873] (**) |   |-->Monitor "Builtin Default Monitor"*
*[    50.874] (**) |   |-->Device "Builtin Default fbdev Device 0"*
*[    50.874] (==) Automatically adding devices*
*[    50.874] (==) Automatically enabling devices*
*[    50.874] (==) Automatically adding GPU devices*
*[    50.875] (WW) The directory "/usr/share/fonts/misc/sgi" does not
exist.*
*[    50.875]    Entry deleted from font path.*
*[    50.875] (==) FontPath set to:*
*        /usr/share/fonts/misc:unscaled,*
*        /usr/share/fonts/Type1/,*
*        /usr/share/fonts/100dpi:unscaled,*
*        /usr/share/fonts/75dpi:unscaled,*
*        /usr/share/fonts/ghostscript/,*
*        /usr/share/fonts/cyrillic:unscaled,*
*        /usr/share/fonts/truetype/,*
*        built-ins*
*[    50.875] (==) ModulePath set to "/usr/lib/xorg/modules"*
*[    50.875] (II) The server relies on udev to provide the list of input
devices.*
*        If no devices become available, reconfigure udev or disable
AutoAddDevices.*
*[    50.875] (II) Loader magic: 0x1dbe80*
*[    50.875] (II) Module ABI versions:*
*[    50.875]    X.Org ANSI C Emulation: 0.4*
*[    50.875]    X.Org Video Driver: 18.0*
*[    50.875]    X.Org XInput driver : 21.0*
*[    50.875]    X.Org Server Extension : 8.0*
*[    50.876] (II) no primary bus or device found*
*[    50.877] (II) LoadModule: "glx"*
*[    50.892] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so*
*[    50.943] (II) Module glx: vendor="X.Org Foundation"*
*[    50.944]    compiled for 1.16.1, module version = 1.0.0*
*[    50.944]    ABI class: X.Org Server Extension, version 8.0*
*[    50.944] (==) AIGLX enabled*
*[    50.944] (II) LoadModule: "fbdev"*
*[    50.945] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so*
*[    50.950] (II) Module fbdev: vendor="X.Org Foundation"*
*[    50.951]    compiled for 1.16.1, module version = 0.4.4*
*[    50.951]    Module class: X.Org Video Driver*
*[    50.951]    ABI class: X.Org Video Driver, version 18.0*
*[    50.951] (II) FBDEV: driver for framebuffer: fbdev*
*[    50.951] (++) using VT number 7*

*[    50.952] (WW) Falling back to old probe method for fbdev*
*[    50.952] (II) Loading sub module "fbdevhw"*
*[    50.952] (II) LoadModule: "fbdevhw"*
*[    50.952] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so*
*[    50.954] (II) Module fbdevhw: vendor="X.Org Foundation"*
*[    50.954]    compiled for 1.16.1, module version = 0.0.2*
*[    50.955]    ABI class: X.Org Video Driver, version 18.0*
*[    50.955] (EE) open /dev/fb0: No such file or directory*
*[    50.955] (EE) No devices detected.*
*[    50.955] (EE)*
*Fatal server error:*
*[    50.955] (EE) no screens found(EE)*
*[    50.956] (EE)*
*Please consult the The X.Org Foundation support*
*         at http://wiki.x.org <http://wiki.x.org>*
* for help.*
*[    50.956] (EE) Please also check the log file at "/var/log/Xorg.0.log"
for additional information.*
*[    50.956] (EE)*



2015-09-01 17:50 GMT+02:00 matthieu claire <[email protected]>:

> 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 <[email protected]>:
>
>> On Thu, Aug 27, 2015 at 4:54 PM, matthieu claire <[email protected]>
>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to