OpenSUSE JeOS bringup: различия между версиями

Материал из Toshiba AC100 wiki
Перейти к навигации Перейти к поиску
м (add submit note)
м (Add more info about Images.kiwi.in)
Строка 16: Строка 16:


* Modify Images.kiwi.in
* Modify Images.kiwi.in
** add target flavor '''#elif IS_FLAVOR_paz00'''
** add target flavor '''#elif IS_FLAVOR_paz00''' <pre>+#elif IS_FLAVOR_paz00&#10;+#  define BOOTKERNEL default&#10;+#  define KERNEL_CMDLINE_SER "plymouth.enable=0 console=ttyS0,115200n8 console=tty"&#10;+#  define KERNEL_CMDLINE_GFX "plymouth.enable=0 console=ttyS0,115200n8 console=tty"&#10;+#  define EXTRA_PACKAGES PKG_BOOT_TAG(u-boot-paz00) \&#10;+                        PKG_BOOT_TAG(dtb-tegra2)&#10;</pre>
 
*** BOOTKERNEL var defines kernel name to use, for example default or lpae for upstream openSUSE Factory kernels
*** PKG_BOOT_TAG var defines u-boot rpm package name which contain board dtb file and name of dtb file itself
* Modify uboot-image-setup.in
* Modify uboot-image-setup.in
** add target case '''case $flavor in paz00)'''
** add target case '''case $flavor in paz00)'''

Версия от 00:25, 22 января 2015

Brief guide how to add target to openSUSE:Factory:ARM:Jeos

Get source code

  • Install osc
    zypper in osc
  • Branch or copy openSUSE:Factory:ARM:Jeos project

Add new target

  • Modify config.sh
    • Add contrib repo if required for downstream kernel/u-boot or addititional rpms (optional)
    • Add additional modules to include to initrd file (optional)
  • Modify pre_checkin.sh
    • add target name to armv7_jeos_images, optional to armv7_gfx_images
  • Modify Images.kiwi.in
    • add target flavor #elif IS_FLAVOR_paz00
      +#elif IS_FLAVOR_paz00
      +#  define BOOTKERNEL default
      +#  define KERNEL_CMDLINE_SER "plymouth.enable=0 console=ttyS0,115200n8 console=tty"
      +#  define KERNEL_CMDLINE_GFX "plymouth.enable=0 console=ttyS0,115200n8 console=tty"
      +#  define EXTRA_PACKAGES PKG_BOOT_TAG(u-boot-paz00) \
      +                         PKG_BOOT_TAG(dtb-tegra2)
      
      • BOOTKERNEL var defines kernel name to use, for example default or lpae for upstream openSUSE Factory kernels
      • PKG_BOOT_TAG var defines u-boot rpm package name which contain board dtb file and name of dtb file itself
  • Modify uboot-image-setup.in
    • add target case case $flavor in paz00)
  • Create uboot-setup-paz00.tgz
    • copy any of existing ones
      cp uboot-setup-panda.tgz uboot-setup-paz00.tgz
      • it will be overriten with pre_checkin.sh script
  • run pre_checkin.sh
    sh ./pre_checkin.sh
  • run build of JeOS-paz00.kiwi
  • Submit patch with new target to upstream Jeos project

Todo

  • Find some way to install u-boot with kiwi
  • Find some way to update u-boot with kiwi

Test results