element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum BB-View 7 on BBB with Debian or Ubutun or Buildroot
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 16 replies
  • Subscribers 58 subscribers
  • Views 2074 views
  • Users 0 members are here
  • debian
  • Ubuntu
  • bb-view
  • bbb
Related

BB-View 7 on BBB with Debian or Ubutun or Buildroot

Former Member
Former Member over 11 years ago

Hello,

 

I would like to use the BBB and BB-View 7" with others distributions than Angstrom.

 

I tryed to patch the kernel of my Ubuntu on BBB but it's seems I still have some issue (it doen't boot with my new kernell..)

 

I wonder if there is a tutorial somewhere that explain how to make works ubuntu or Debian or another GNU/Linux (created with buildroot for example) that supports BB-View on Beaglebone Black.

 

Thanks^^

  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 11 years ago

    Well I tried to compile the bb-black-kernel-3.8.13-bb-view.tar.gz2 Angstrom Kernell source code downloaded on element14 with arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.8-2013.10 - Linaro GCC 2013.10)

    like describe here:

    http://eewiki.net/display/linuxonarm/BeagleBone

     

    I did in kernel source directory this commands:

     

    make ARCH=arm menuconfig

    make ARCH=arm CROSS_COMPILE=/home/ana/Téléchargements/BBB/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf- uImage modules

     

     

    and I've got this error:.

    [/CODE]

    WARNING: modpost: Found 1 section mismatch(es).

    To see full details build your kernel with:

    'make CONFIG_DEBUG_SECTION_MISMATCH=y'

      GEN     .version

      CHK     include/generated/compile.h

      UPD     include/generated/compile.h

      CC      init/version.o

      LD      init/built-in.o

      KSYM    .tmp_kallsyms1.o

      KSYM    .tmp_kallsyms2.o

      LD      vmlinux

      SORTEX  vmlinux

    sort done marker at 634424

      SYSMAP  System.map

      OBJCOPY arch/arm/boot/Image

      Kernel: arch/arm/boot/Image is ready

      AS      arch/arm/boot/compressed/head.o

      LZO     arch/arm/boot/compressed/piggy.lzo

    /bin/sh: 1: lzop: not found

    make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Erreur 1

    make[1]: *** [arch/arm/boot/compressed/vmlinux] Erreur 2

    make: *** [uImage] Erreur 2

    [/CODE]

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    Your Kernel Compression mode is set to LZO but you don't have the proper tools installed

    In menuconfig, go to General Setup and change it back to Gzip:

    image

     

    Alternatively, the lzop source is available here http://www.lzop.org/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago

    Thank you very much for your  answer^^  I'll be able to continue my compilation image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago

    Well, I finished with success the compilation,

     

    after I did this:

    (I used the ubuntu img from armhf)

    [CODE]

    # xz -cd ubuntu-precise-12.04.3-armhf-3.8.13-bone30.img.xz > /dev/sdb

    # cd /media/rootfs_armhf.com/

    # cp /home/ana/Téléchargements/BBB/kernel/kernel/arch/arm/boot/uImage boot/

    # make -C /home/ana/Téléchargements/BBB/kernel/kernel/ INSTALL_MOD_PATH=`pwd` ARCH=arm CROSS_COMPILE=/home/ana/Téléchargements/BBB/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf- modules_install

    #cd boot/

    #mv vmlinux-3.8.13-bone30 vmlinux-3.8.13-bone30origine

    #mv uImage vmlinux-3.8.13-bone30

    #chmod a+x  vmlinux-3.8.13-bone30

    [/CODE]

     

    and I changed optargs=fixrtc line in uEnv.txt in  /media/BOOT_ARMHF/

    like this:

    [CODE]

    mmcpart=2

    optargs=dispmode=7inch_LCD

    uenvcmd=i2c mw 0x24 1 0x3e; kd=0; if test $mmcdev -eq 1; then mmc dev 0; if mmc rescan; then kd=1; fi; mmc dev 1; fi; setenv mmcroot /dev/mmcblk${kd}p${mmcpart} ro

    loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${bootdir}/dtbs/${fdtfile}

    loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootdir}/${bootfile}

     

    [/CODE]

     

     

    But when I put the SDcard in the BBB it doesn't boot even if I push the uSD button at power up...

     

    If someone has a clue..

     

    EDIT: I understand where is my msitake.. I have to compile Uboot also like described here:

    http://www.farnell.com/datasheets/1780810.pdf

    but now I'm looking for where I could find this files:

    linux-3.2.0-psp04.06.00.11-bb-view.tar.bz2

    and

    u-boot-2013.01.01-psp06.00.00.00-bb-view.tar.bz2

     

    and do this following instructions:

    Compiling "uboot" from element14

    1)

    Execute the following commands to uncompress the uboot source code

    $ cd $HOME

    $ tar xvf u-boot-2013.01.01-psp06.00.00.00-bb-view.tar.bz2

    2)

    Execute the following instructions to compile

    $ cd $HOME/u-boot-2013.01.01-psp06.00.00.00

    $ make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm distclean

    $ rm -rf am335x

    $ make O=am335x CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm am335x_evm

    After the compilation is done, the files “MLO” and “u-boot.img” can be found under “am335x/” of the current directory.


    Compiling the "Kernel" from element14

    Execute the following instructions to unzip the source code and compile the kernel image;

    $ cd $HOME

    $ tar xvf linux-3.2.0-psp04.06.00.11-bb-view.tar.bz2

    $ cd linux-3.2.0-psp04.06.00.11

    $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean

    $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_defconfig

    $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules

    A kernel file named “uImage” with LCD module support is generated under “arch/arm/boot/”.


    System Update with BB-View Support

    1)Format a flash drive or a TF card to FAT32 and mount

    it under the Ubuntu Linux system, and then execute the following instructions

    to copy the image to the flash drive or TF card. (These instructions assume the flashdrive or TF card is mounted under “/mnt”)

    $ cd $HOME

    $ cp u-boot-2013.01.01-psp06.00.00.00/am335x/MLO /mnt

    $ cp u-boot-2013.01.01-psp06.00.00.00/am335x/u-boot.img /mnt 

    $ cp linux-3.2.0-psp04.06.00.11/arch/arm/uImage /mnt 

    $ mkdir /mnt/rootfs 

    $ cd $HOME/linux-3.2.0-psp04.06.00.11

     

    $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install INSTALL_MOD_PATH=/mnt/rootfs

    $ cd /mnt/rootfs

    $ tar -czvf ../kernel_modules.tar.gz ./

    $ cd /mnt

    $ rm –rf rootfs 


    2)

    Connect BB-View to the BeagleBone or BeagleBone Black  and then connect the power supply; Insert the flash drive or TF card into the

    BeagleBone or BeagleBone Black and execute the following instructions in PuTTY

    to update the system image (If a TF card is used instead of a flash drive, please change the path in the instructions accordingly)


    $ cp /media/sda1/MLO /media/mmcblk0p1/

    $ cp /media/sda1/u-boot.img /media/mmcblk0p1/

    $ cp /media/sda1/uImage /media/mmcblk0p1/

    $ tar -xvf /media/sda1/kernel_modules.tar.gz -C /


    Do you think It would be ok to make boot Ubuntu with BB-View if I follow that step.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    The SD needs a minimum of two partitions,  normally /dev/mmcblk0p1 & /dev/mmkblk0p2

     

    p1 needs to be formatted as fat and at minimum needs two files MLO and u-boot.img the boot code in the SoC will look for MLO on the first partition, load it and run it.  In normal circumstances, MLO is actually u-boot-spl which will just do some basic hardware setup and then load u-boot.img. What happend from there is down to whatever bootscript was compiled into u-boot.

     

    Some versions of u-boot try to load uImage, other newer versions have been updated to load zImage directly. If your u-boot is trying lo load a zImage but you've built a uImage then it's not going to work.

     

    Your best way forward is to attach a serial console, you'll see messages from the boot process there which should help you debug the problem.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    Thanks for your answer. image

    I don't have a serial cable with me here but it's what I plan to use^^

     

    I edited my previous message and as you see, I guess that I have to compile also U-boot to use BB-view because I have well MLO and u-boot.img file in my BOOT partition..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    Hi again,

     

    Well I progress well  ^^

     

    I recompiled the kernell like this to have a zImage file(with gzip compression):

     

    make ARCH=arm CROSS_COMPILE=/home/ana/Téléchargements/BBB/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf- zImage modules

     

     

    After I did all the same steps describes above with the zImage instead of the uImage.

     

    Then I took the am335x-boneblack-lcd7.dtb file in the angstrom-image.zip and I copied it in the /media/rootfs_armhf.com/boot/dtbs  directory with am335x-boneblack.dtb name .

     

    And it works, it boot well, and I see the shell on the BB-View ^^

     

    Now I think I will install a desktop or maybe just openBox. I'll need to calibrate the touch screen anyway.. I know that there is a pointercal file in the TI and Angstrom Image but I don't know what sofware I should use... any idea? ^^

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • razvanbbb
    razvanbbb over 11 years ago in reply to Former Member

    for calibration I used ts_calibrate outside of gnome

     

    I try to recompile the kernel from element14 also because I want to change the BB-VIEW-LCD4-01-00A0.dtbo file but I'm very new to Linux, can you please tell me the steps you did to accomplish this. Thank you!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to razvanbbb

    Hello,

     

    Well I did exactly what I wrote before :

     

    I download the source file here:

    http://downloads.element14.com/downloads/bb-view/angstrom/angstrom-source.zip?COM=BeagleBoneBlack

    and others files here:

    http://downloads.element14.com/downloads/bb-view/angstrom/angstrom-image.zip?COM=BeagleBoneBlack

     

    Then I change directory in kernell source directory and I run this commands:

    make ARCH=arm menuconfig

    (I choosed gzip compression)

    make ARCH=arm CROSS_COMPILE=/home/ana/Téléchargements/BBB/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf- zImage modules

    (because the bootloader wants a zImage)

     

    after I took the am335x-boneblack-lcd7.dtb file in the angstrom-image.zip and I copied it in the rootfs_armhf.com/boot/dtbs  directory of my ubuntu armhf file system with am335x-boneblack.dtb name.

     

    Also in the Boot partition, I changed uEnv.txt to use LCD 7" :

    mmcpart=2

    optargs=dispmode=7inch_LCD

    uenvcmd=i2c mw 0x24 1 0x3e; kd=0; if test $mmcdev -eq 1; then mmc dev 0; if mmc rescan; then kd=1; fi; mmc dev 1; fi; setenv mmcroot /dev/mmcblk${kd}p${mmcpart} ro

    loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${bootdir}/dtbs/${fdtfile}

    loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootdir}/${bootfile}




    For the calibration I did:

    apt-get update

    apt-get install lxde lxde-core lxde-icon-theme

    apt-get install xinput-calibrator


    in LXDE, I launched xinput-calibrator like this:

    cd /usr/share/bin

    ./xinput-calibrator --output-type xinput


    And then add calibration option settings obtained to the touchscreen InputClass section in 10-evdev.conf after driver "evdev":


    Option "Calibration" "96 3914 155 3899"


    (sudo  nano /usr/share/X11/xorg.conf.d/10-evdev.conf)



    Now   I have an issue with virtual keybord onboard which is all black ! Maybe I'll try to fix it or I'll try the florence virtual keyboard ..



    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    zodd wrote:

     

    And it works, it boot well, and I see the shell on the BB-View ^^

    Good to see you have it working.  Getting a serial cable is well worth it, it'll make solving this sort of thing in the future much easier.

     

    Can't help you with the touch screen, I don't have one myself so have never investigated how to set them up on the BBB.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube