archive-org.com » ORG » K » KERNELNOMICON.ORG

Total: 311

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • FreeBSD developer's notebook | Tag Archive | arm
    it s called convert to binary format but essentially what objcopy utility does is it simulates loading of ELF file into memory and dumps memory region from the lowest address that belongs to loaded executable to the highest one into the kernel bin file No auxiliary information is saved only raw code and data Without this information it s users responsibility to point which address this memory dump should be loaded at and where to start execution That s theory in a nutshell Back to practice U Boot Network initialization routine depends on the board you re working with If the ethernet card connected to board over USB like on Raspberry Pi or Pandaboard you might need to initialize USB first U Boot usb start Re start USB USB0 Core Release 2 80a scanning bus 0 for devices 3 USB Device s found scanning usb for storage devices 0 Storage Device s found scanning usb for ethernet devices 1 Ethernet Device s found At this point you can either get network settings via DHCP or set them manually Manual control over network is performed by setting U Boot environment variables U Boot setenv ipaddr 192 168 10 21 U Boot setenv netmask 255 255 255 0 U Boot setenv gatewayip 192 168 10 1 DHCP also provides information about TFTP server and boot file we can set them manually too U Boot setenv bootfile kernel U Boot setenv serverip 192 168 10 1 And now load it U Boot tftpboot 0x8000 and boot U Boot bootelf 0x8000 By default tftpboot and bootelf would use loadaddr env variable if it s set so you can combine last two commands to U Boot setenv loadaddr 0x8000 U Boot tftpboot U Boot bootelf With DHCP everything above is combined into three commands U Boot setenv loadaddr 0x8000 U Boot dhcp U Boot bootelf If you re booting ELF loadaddr can be any valid address because bootelf will relocate kernel to proper location Valid range for addresses depends on the board in use With kernel bin though you have to specify specific value as a loadaddr Usually it s KERNPHYSADDR option in kernel config file for ARM and KERNLOADADDR value for MIPS U Boot commands sequence would look like U Boot setenv bootfile kernel bin U Boot setenv loadaddr 0x00100000 U Boot dhcp U Boot go 0x00100000 uImage ubldr This is basic stuff I ve been using for several years in my development environment There are more options though u boot application images and bootm command and ubldr Former is well documented on Internet and about latter I ll post some information soon In FreeBSD arm netboot Netbooting ARM MIPS devices server setup February 14 2013 5 Comments I was asked to share details about my root over NFS setup so here they are I decided to split how to in two posts server kernel part and u boot part Usual components in the setup are DHCP server TFTP server NFS server NAT optional

    Original URL path: http://kernelnomicon.org/?tag=arm-2 (2016-02-01)
    Open archived version from archive

  • FreeBSD developer's notebook | Tag Archive | netboot
    it s called convert to binary format but essentially what objcopy utility does is it simulates loading of ELF file into memory and dumps memory region from the lowest address that belongs to loaded executable to the highest one into the kernel bin file No auxiliary information is saved only raw code and data Without this information it s users responsibility to point which address this memory dump should be loaded at and where to start execution That s theory in a nutshell Back to practice U Boot Network initialization routine depends on the board you re working with If the ethernet card connected to board over USB like on Raspberry Pi or Pandaboard you might need to initialize USB first U Boot usb start Re start USB USB0 Core Release 2 80a scanning bus 0 for devices 3 USB Device s found scanning usb for storage devices 0 Storage Device s found scanning usb for ethernet devices 1 Ethernet Device s found At this point you can either get network settings via DHCP or set them manually Manual control over network is performed by setting U Boot environment variables U Boot setenv ipaddr 192 168 10 21 U Boot setenv netmask 255 255 255 0 U Boot setenv gatewayip 192 168 10 1 DHCP also provides information about TFTP server and boot file we can set them manually too U Boot setenv bootfile kernel U Boot setenv serverip 192 168 10 1 And now load it U Boot tftpboot 0x8000 and boot U Boot bootelf 0x8000 By default tftpboot and bootelf would use loadaddr env variable if it s set so you can combine last two commands to U Boot setenv loadaddr 0x8000 U Boot tftpboot U Boot bootelf With DHCP everything above is combined into three commands U Boot setenv loadaddr 0x8000 U Boot dhcp U Boot bootelf If you re booting ELF loadaddr can be any valid address because bootelf will relocate kernel to proper location Valid range for addresses depends on the board in use With kernel bin though you have to specify specific value as a loadaddr Usually it s KERNPHYSADDR option in kernel config file for ARM and KERNLOADADDR value for MIPS U Boot commands sequence would look like U Boot setenv bootfile kernel bin U Boot setenv loadaddr 0x00100000 U Boot dhcp U Boot go 0x00100000 uImage ubldr This is basic stuff I ve been using for several years in my development environment There are more options though u boot application images and bootm command and ubldr Former is well documented on Internet and about latter I ll post some information soon In FreeBSD arm netboot Netbooting ARM MIPS devices server setup February 14 2013 5 Comments I was asked to share details about my root over NFS setup so here they are I decided to split how to in two posts server kernel part and u boot part Usual components in the setup are DHCP server TFTP server NFS server NAT optional

    Original URL path: http://kernelnomicon.org/?tag=netboot (2016-02-01)
    Open archived version from archive

  • VCHIQ drivers work again | FreeBSD developer's notebook
    was watching H 264 video playing on Raspberry Pi in hello video demo Network throughput still sucks so I had to copy file to tmpfs partition in order to get smooth playback though If you want to test VCHIQ in addition to sources you ll need latest firmware files For demos you ll also have to install freetype2 and manually hack Makefile include in hello pi I m planning to create ports packages for both drivers and userland some time next week On the related note Aleksandr Rybalko got XOrg working on Efika MX Smartbook so FreeBSD Pi will get graphic interface soon In ARM FreeBSD Raspberry Pi gonzo Posts Website Packages for Rasberry Building image for Raspberry 7 responses to VCHIQ drivers work again ezyclie January 13 2013 at 11 19 pm Is this the one http freshbsd org commit freebsd r245389 Reply Aleksandr Rybalko January 14 2013 at 4 47 pm Why it will It already have Commit which ezyclie points to close difference between my driver for Efika MX Smartbook and RPi so now anyone may follow my blog post and compile and run Xorg on RPi too Thanks Reply Ivan Voras January 27 2013 at 4 56 pm Hello Can someone make an updated image for FreeBSD pi with these latest developments VCHIQ X Org packets Reply ezyclie January 31 2013 at 4 14 am You can download it here http snakeorladder com rpi dma kernel tar gz Reply vk February 1 2013 at 3 59 am Hi Gonzo i saw some files on https github com raspberrypi firmware tree master boot Which files should I use to boot FreeBSD Reply gonzo February 1 2013 at 5 01 pm I ve just posted update instruction Updated u boot package with new firmware files http people freebsd

    Original URL path: http://kernelnomicon.org/?p=271 (2016-02-01)
    Open archived version from archive

  • Raspberry Pi | FreeBSD developer's notebook
    I provide pre compiled binaries because for some reason ioquake3 built with xdev tools crash in qsort libc incompatibilities so I use make buildenv to build it And here is photo of demo in action there are RaspberryPi and ZedBoard on it too yay In ARM Raspberry Pi freebsd raspberry pi vchiq VCHIQ drivers work again January 13 2013 7 Comments I synced both vchiq freebsd and userland to latest and greatest As I mentioned earlier OS compatibility shim was removed from upstream sources so I had to create Linux KPI implementation layer which turned out not that awful task because I managed to reuse a lot of code from Max Khon s DAHDI port I had to implement in somewhat hackish fashion kthread API re implement semaphores support using condvar and mutex in order to get interruptible part of API working properly and create dumb implementation of rather small subset of Linux list h API With latest code I got pretty much all demos in hello pi working except hello jpeg crashes system and hello encode didn t test The most exciting bit for me was watching H 264 video playing on Raspberry Pi in hello video demo Network throughput still sucks so I had to copy file to tmpfs partition in order to get smooth playback though If you want to test VCHIQ in addition to sources you ll need latest firmware files For demos you ll also have to install freetype2 and manually hack Makefile include in hello pi I m planning to create ports packages for both drivers and userland some time next week On the related note Aleksandr Rybalko got XOrg working on Efika MX Smartbook so FreeBSD Pi will get graphic interface soon In ARM FreeBSD Raspberry Pi FreeBSD on Pi more stuff November 29 2012 24 Comments Long overdue update on how the things are going with FreeBSD on Raspberry Pi We ve made some good progress so far Hans Petter Selasky fixed low speed interrupt endpoints problem which means we have working USB keyboard now GPIO driver by Luiz Otavio O Souza So now you can blink OK LED gpioctl f dev gpioc0 t 16 Not the most productive activity though Kernel now obtains information about display resolution memory layout MAC address from firmware Framebuffer syscons support added Some stability fixes for SDHCI li Initial port of VCHIQ interface vchiq freebsd Port of userland libraries userland Overall stability and performance is still a problem but it s what we re going to work on next And if you missed previous post freebsd pi is no more use HEAD from FreeBSD subversion repository Boot process has been changed and now it looks like firmware uboot ubldr kernel So old script for building image is no longer relevant Here is new one Tim Kientzle s scripts collection for building images for BeagleBone Pandaboard and RPi uses more systematic approach but RPi part hasn t caught up to latest boot chain changes yet Once it

    Original URL path: http://kernelnomicon.org/?cat=44 (2016-02-01)
    Open archived version from archive

  • FreeBSD | FreeBSD developer's notebook
    cross compiled FreeBSD is broken unless you re doing it on the latest HEAD The reason is utility called mtree 8 It is used to ensure that target filesystem permissions and owners groups are correct Owners and groups are described as usernames and group names not as numeric UIDs GUIDs and mtree uses getpwXXX family of routines to convert names to numeric values See the problem already If new system user is added to latest HEAD and you use old trusty FreeBSD 9 0 there is no way mtree would know about this user NetBSD solved this problem by introducing N command line option that lets you point mtree to the target system s master passwd and groups So we need to port this feature to FreeBSD in order to get proper cross compilation environment And that s my plan for next few days So if you see something like this mtree eU f src FreeBSD head etc mtree BSD var dist p mnt var mtree line 22 unknown user auditdistd distrib dirs Error code 1 Either update to latest HEAD use mergemaster p or wait couple of days In FreeBSD FreeBSD on Pi more stuff November 29 2012 24 Comments Long overdue update on how the things are going with FreeBSD on Raspberry Pi We ve made some good progress so far Hans Petter Selasky fixed low speed interrupt endpoints problem which means we have working USB keyboard now GPIO driver by Luiz Otavio O Souza So now you can blink OK LED gpioctl f dev gpioc0 t 16 Not the most productive activity though Kernel now obtains information about display resolution memory layout MAC address from firmware Framebuffer syscons support added Some stability fixes for SDHCI li Initial port of VCHIQ interface vchiq freebsd Port of userland libraries userland Overall stability and performance is still a problem but it s what we re going to work on next And if you missed previous post freebsd pi is no more use HEAD from FreeBSD subversion repository Boot process has been changed and now it looks like firmware uboot ubldr kernel So old script for building image is no longer relevant Here is new one Tim Kientzle s scripts collection for building images for BeagleBone Pandaboard and RPi uses more systematic approach but RPi part hasn t caught up to latest boot chain changes yet Once it is up to date I suggest using Tim s scripts Building FreeBSD does not require any additional tools but if you want VideoCore bits you ll need following packages installed devel cmake devel git devel gmake If you don t need VideoCore binaries just comment build videocore and install videocore calls This script will also install OpenGL ES hello triangle demo to root folder To run it run perform following steps cd root kldload vchiq hello triangle bin I tried to build Qt5 with OpenGL ES support but build choked on compile time assert triggered by FreeBSD using OABI Good news though EABI

    Original URL path: http://kernelnomicon.org/?cat=4&paged=2 (2016-02-01)
    Open archived version from archive

  • HDMI support for Beaglebone Black | FreeBSD developer's notebook
    works but the colors are changed If I do a listing using ls G the directories are shown in a brown color tda0 TDA19988 Vendor ENC Product 1764 L578 Serial number 21394015 Manufactured 2005 Week 4 EDID Version 1 3 EDID Comment Video Input 80 Digital Gamma 2 20 Max Size 34 cm x 27 cm Features ea DPMS standby DPMS suspend DPMS active off RGB Preferred timing Chroma Info Red X 0 639 Red Y 0 639 Grn X 0 299 Grn Y 0 599 Blu X 0 150 Blu Y 0 059 Wht X 0 313 Wht Y 0 329 Range Horizontal 31 64 kHz Vertical 59 61 Hz Max Dot Clock 110 MHz Video modes 720 400 70Hz 28320 738 846 900 412 414 449 H V 640 480 60Hz 25175 656 752 800 490 492 525 H V 800 600 60Hz 40000 840 968 1056 601 605 628 H V 1024 768 60Hz 65000 1048 1184 1344 771 777 806 H V 1280 1024 60Hz 108000 1328 1440 1688 1025 1028 1066 H V Preferred mode 1280 1024 60Hz Number of extension blocks 0 fb0 detected videomode 1280 1024 60KHz fbd0 on fb0 VT initialize with

    Original URL path: http://kernelnomicon.org/?p=495&replytocom=32854 (2016-02-01)
    Open archived version from archive

  • HDMI support for Beaglebone Black | FreeBSD developer's notebook
    output works but the colors are changed If I do a listing using ls G the directories are shown in a brown color tda0 TDA19988 Vendor ENC Product 1764 L578 Serial number 21394015 Manufactured 2005 Week 4 EDID Version 1 3 EDID Comment Video Input 80 Digital Gamma 2 20 Max Size 34 cm x 27 cm Features ea DPMS standby DPMS suspend DPMS active off RGB Preferred timing Chroma Info Red X 0 639 Red Y 0 639 Grn X 0 299 Grn Y 0 599 Blu X 0 150 Blu Y 0 059 Wht X 0 313 Wht Y 0 329 Range Horizontal 31 64 kHz Vertical 59 61 Hz Max Dot Clock 110 MHz Video modes 720 400 70Hz 28320 738 846 900 412 414 449 H V 640 480 60Hz 25175 656 752 800 490 492 525 H V 800 600 60Hz 40000 840 968 1056 601 605 628 H V 1024 768 60Hz 65000 1048 1184 1344 771 777 806 H V 1280 1024 60Hz 108000 1328 1440 1688 1025 1028 1066 H V Preferred mode 1280 1024 60Hz Number of extension blocks 0 fb0 detected videomode 1280 1024 60KHz fbd0 on fb0 VT initialize

    Original URL path: http://kernelnomicon.org/?p=495&replytocom=33412 (2016-02-01)
    Open archived version from archive

  • HDMI support for Beaglebone Black | FreeBSD developer's notebook
    works but the colors are changed If I do a listing using ls G the directories are shown in a brown color tda0 TDA19988 Vendor ENC Product 1764 L578 Serial number 21394015 Manufactured 2005 Week 4 EDID Version 1 3 EDID Comment Video Input 80 Digital Gamma 2 20 Max Size 34 cm x 27 cm Features ea DPMS standby DPMS suspend DPMS active off RGB Preferred timing Chroma Info Red X 0 639 Red Y 0 639 Grn X 0 299 Grn Y 0 599 Blu X 0 150 Blu Y 0 059 Wht X 0 313 Wht Y 0 329 Range Horizontal 31 64 kHz Vertical 59 61 Hz Max Dot Clock 110 MHz Video modes 720 400 70Hz 28320 738 846 900 412 414 449 H V 640 480 60Hz 25175 656 752 800 490 492 525 H V 800 600 60Hz 40000 840 968 1056 601 605 628 H V 1024 768 60Hz 65000 1048 1184 1344 771 777 806 H V 1280 1024 60Hz 108000 1328 1440 1688 1025 1028 1066 H V Preferred mode 1280 1024 60Hz Number of extension blocks 0 fb0 detected videomode 1280 1024 60KHz fbd0 on fb0 VT initialize with

    Original URL path: http://kernelnomicon.org/?p=495&replytocom=33030 (2016-02-01)
    Open archived version from archive