ЗАО «ЗЭО»

Пожалуйста, войдите или зарегистрируйтесь.

Расширенный поиск  

Новости:

Автор Тема: Патчи для ядра 2.6.35  (Прочитано 12829 раз)

0 Пользователей и 1 Гость просматривают эту тему.

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Патчи для ядра 2.6.35
« : 13 Апреля, 2015, 11:47:48 »

Добрый день!
У меня вопрос про патчи (если что у меня Тион28 на Сириусе).
В выложенной виртуальной машине в папке исходников ядра patches/
лежат 571 патч от Freescale и патчи от вас tion_pro28_svn2127 и  tion_pro28_svn2203
На оф сайте доступны patches_for_L2.6.35_MX28_SDK_10.12_SOURCE.tar.gz там патчи с 572 по 592
Можно накопать и до 670 патчей и наверно далее
На вашем сайте дополнительно к указанным доступны tion_pro28_svn2203-2461 и до 2909
Соответственно вопрос: Какие патчи накладывать будет ли противоречие с доп патчами от Freescale?
И вопрос дублирую из другой ветки:
В каких файлах для сборки ядра и uboot специфические данные касающиеся нашего железа? 
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Патчи для ядра 2.6.35
« Ответ #1 : 13 Апреля, 2015, 15:58:27 »

Добрый день.
Патчи после 571, насколько я помню, не применялись, т.к. существенных изменений для нашей платы в них нет.
В виртуальной машине нужно еще применить патчи 2461-2840 и 2840-2909.
Какие файлы менялись можно посмотреть в наших патчах (tion-pro28_patch_svn...).
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #2 : 13 Апреля, 2015, 16:10:19 »

Вот попытался наложить на чистую виртуалку:
ubuntu@ubuntu:~/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux$ patch -p1 --no-backup-if-mismatch < patches/tion_pro28_svn2461-2840.patch
can't find file to patch at input line 108
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|NOTE: this patch tion_pro28_svn2461-2834.patch was manually corrected to be
|matched with tion-pro28_patch_freescale.tar.gz and tion-pro28_patch_svn2461.zip
|-- asv
|
|Property changes on: include/linux/pmic_light.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/mc13783/core.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/mc9s08dz60/core.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/mc9s08dz60/pmic.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/mc34704/core.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/wm8350/bl.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/mc13892/core.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/ltc3589/core.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mfd/max17135.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/pmic_rtc.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/gpmi-nfc.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/ldb.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/pxp_dma.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|
|Property changes on: include/linux/mxc_pf.h
|___________________________________________________________________
|Deleted: svn:executable
|   - *
|
|Index: scripts/basic/docproc
|===================================================================
|Cannot display: file marked as a binary type.
|svn:mime-type = application/octet-stream
|Index: scripts/basic/fixdep
|===================================================================
|Cannot display: file marked as a binary type.
|svn:mime-type = application/octet-stream
|Index: scripts/basic/hash
|===================================================================
|Cannot display: file marked as a binary type.
|svn:mime-type = application/octet-stream
|Index: scripts/kconfig/conf
|===================================================================
|Cannot display: file marked as a binary type.
|svn:mime-type = application/octet-stream
|Index: sound/soc/mxs/mxs-dai.c
|===================================================================
|--- sound/soc/mxs/mxs-dai.c (revision 2461)
|+++ sound/soc/mxs/mxs-dai.c (revision 2840)
--------------------------
File to patch:

Исправил ключи

Почти все запатчилось пересобираю
ubuntu@ubuntu:~/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux$ patch -p0 < patches/tion_pro28_svn2461-2840.patch
patching file sound/soc/mxs/mxs-dai.c
patching file localversion
patching file arch/arm/configs/tion-pro28_defconfig
patching file arch/arm/mach-mx28/emi_settings.c
patching file arch/arm/mach-mx28/clock.c
patching file arch/arm/mach-mx28/mx28evk_pins.c
patching file arch/arm/mach-mx28/device.c
patching file arch/arm/mach-mx28/emi_settings.h
patching file arch/arm/mach-mx28/mx28evk.c
patching file drivers/net/fec.c
patching file drivers/mtd/nand/gpmi-nfc/gpmi-nfc.h
patching file drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c
patching file drivers/input/touchscreen/mxs-ts.c
patching file drivers/video/mxs/lcd_tionpro28.c
Hunk #3 FAILED at 147.
Hunk #4 succeeded at 188 (offset 8 lines).
Hunk #5 succeeded at 210 (offset 8 lines).
Hunk #6 succeeded at 229 (offset 8 lines).
Hunk #7 succeeded at 243 (offset 8 lines).
Hunk #8 succeeded at 268 (offset 8 lines).
Hunk #9 succeeded at 329 (offset 8 lines).
1 out of 9 hunks FAILED -- saving rejects to file drivers/video/mxs/lcd_tionpro28.c.rej
patching file drivers/video/mxs/mxsfb.c
ubuntu@ubuntu:~/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux$ patch -p0 < patches/tion_pro28_svn2840-2909.patch
patching file arch/arm/mach-mx28/mx28evk_pins.c
patching file arch/arm/mach-mx28/mx28evk.c
patching file drivers/power/mxs/linux.c
patching file drivers/i2c/busses/i2c-mxs.c
patching file drivers/video/mxs/lcd_tionpro28.c
Hunk #6 succeeded at 209 (offset 3 lines).
Hunk #7 succeeded at 229 (offset 3 lines).
Hunk #8 succeeded at 308 (offset 3 lines).
« Последнее редактирование: 13 Апреля, 2015, 16:35:24 от miks »
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #3 : 13 Апреля, 2015, 16:50:36 »

Ну да "природу не обманешь"
Ошибка на кривопропатченном файле drivers/video/mxs/lcd_tionpro28.c
Теперь ядро из-за этого не собрать(((
« Последнее редактирование: 13 Апреля, 2015, 17:21:41 от miks »
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #4 : 14 Апреля, 2015, 12:10:30 »

Ну и что??? Поддержка вы или нет?
Патчи явно кривые или виртуалка не так собрана.
Обратно попытался вернуть с ключом -R теперь проблема теперь с релизом тоже пропатченным
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
"2.6.35.3-571-gcca29a0-571-gcca29a0*************** *** 1 **** - -zeo --- 0 ----" exceeds 64 characters
make: *** [include/generated/utsrelease.h] Error 1
make: INTERNAL: Exiting with 9 jobserver tokens available; should be 8!
error: Bad exit status from /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.40959 (%build)


Или выложите уже пропатченные сорсы куда нибудь (которые естественно собираются и так и в LTIBе)
« Последнее редактирование: 14 Апреля, 2015, 12:59:54 от miks »
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #5 : 14 Апреля, 2015, 17:47:46 »

Продолжу в никуда(((
С добавкой - Zeo решил тупым удалением ))
Пока ковыряю наложение tion_pro28_svn2461-2840.patch
Вручную поправил lcd_tionpro28.c что не хотелось патчится
Теперь затык компиляции на "вроде бы" успешно запатченном arch/arm/mach-mx28/mx28evk_pins.c
LD      drivers/input/built-in.o
  LD      sound/built-in.o
  AS      arch/arm/mach-mx28/emi.o
arch/arm/mach-mx28/mx28evk_pins.c:680: warning: braces around scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:680: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:681: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:681: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:682: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:682: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:682: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:682: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:683: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:683: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:683: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:683: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:684: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:684: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:684: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:684: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:685: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:685: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:685: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:685: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:686: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:686: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:686: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:686: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:687: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:687: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:687: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:687: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:688: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:688: error: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:688: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:688: warning: (near initialization for 'mx28evk_fixed_pins[64].name')
arch/arm/mach-mx28/mx28evk_pins.c:690: warning: braces around scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:690: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:691: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:691: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:691: warning: initialization makes integer from pointer without a cast
arch/arm/mach-mx28/mx28evk_pins.c:692: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:692: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:692: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:692: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:693: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:693: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:693: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:693: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:694: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:694: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:694: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:694: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:695: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:695: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:695: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:695: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:696: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:696: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:696: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:696: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:697: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:697: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:697: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:697: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:698: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:698: error: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:698: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:698: warning: (near initialization for 'mx28evk_fixed_pins[64].id')
arch/arm/mach-mx28/mx28evk_pins.c:700: warning: braces around scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:700: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:701: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:701: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:701: error: incompatible types when initializing type 'enum pin_fun' using type 'char *'
arch/arm/mach-mx28/mx28evk_pins.c:702: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:702: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:702: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:702: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:703: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:703: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:703: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:703: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:704: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:704: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:704: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:704: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:705: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:705: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:705: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:705: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:706: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:706: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:706: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:706: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:707: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:707: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:707: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:707: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:708: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:708: error: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:708: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:708: warning: (near initialization for 'mx28evk_fixed_pins[64].fun')
arch/arm/mach-mx28/mx28evk_pins.c:710: warning: braces around scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:710: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:711: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:711: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:711: error: incompatible types when initializing type 'enum pad_strength' using type 'char *'
arch/arm/mach-mx28/mx28evk_pins.c:712: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:712: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:712: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:712: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:713: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:713: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:713: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:713: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:714: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:714: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:714: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:714: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:715: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:715: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:715: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:715: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:716: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:716: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:716: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:716: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:717: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:717: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:717: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:717: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:718: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:718: error: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:718: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:718: warning: (near initialization for 'mx28evk_fixed_pins[64].strength')
arch/arm/mach-mx28/mx28evk_pins.c:720: warning: braces around scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:720: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:721: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:721: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:721: error: incompatible types when initializing type 'enum pad_voltage' using type 'char *'
arch/arm/mach-mx28/mx28evk_pins.c:722: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:722: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:722: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:722: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:723: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:723: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:723: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:723: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:724: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:724: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:724: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:724: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:725: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:725: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:725: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:725: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:726: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:726: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:726: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:726: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:727: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:727: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:727: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:727: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:728: error: field name not in record or union initializer
arch/arm/mach-mx28/mx28evk_pins.c:728: error: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:728: warning: excess elements in scalar initializer
arch/arm/mach-mx28/mx28evk_pins.c:728: warning: (near initialization for 'mx28evk_fixed_pins[64].voltage')
arch/arm/mach-mx28/mx28evk_pins.c:744: error: expected '}' before ';' token
make[1]: *** [arch/arm/mach-mx28/mx28evk_pins.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  LD      kernel/built-in.o
make: *** [arch/arm/mach-mx28] Error 2

(((
« Последнее редактирование: 14 Апреля, 2015, 17:49:23 от miks »
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Патчи для ядра 2.6.35
« Ответ #6 : 14 Апреля, 2015, 18:07:53 »

tion-pro28_patch_svn2840-2909 наложите, он исправляет эту ошибку.
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #7 : 15 Апреля, 2015, 14:36:01 »

Патч наложил:
ubuntu@ubuntu:~/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3$ patch -p0  < patches/tion_pro28_svn2840-2909.patch
patching file arch/arm/mach-mx28/mx28evk_pins.c
patching file arch/arm/mach-mx28/mx28evk.c
patching file drivers/power/mxs/linux.c
patching file drivers/i2c/busses/i2c-mxs.c
patching file drivers/video/mxs/lcd_tionpro28.c

Ядро все равно не собирается (сейчас если удастся выложу весь лог или только ошибку)
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #8 : 15 Апреля, 2015, 14:37:53 »

Вот:
ubuntu@ubuntu:~/Projects/TionPro28/ltib/ltib$ ./ltib -p kernel

Processing platform: Freescale iMX28 Based Boards
===================================================
using config/platform/imx/.config

Processing: kernel-2.6.35
===========================
Build path taken because: build key set, no prebuilt rpm,

rpmbuild --dbpath /home/ubuntu/Projects/TionPro28/ltib/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp' --define '_rpmdir /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bb  /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/kernel-2.6.35.spec
Building target platforms: arm
Building for target arm
Executing(%prep): /bin/sh -e /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.65136
+ umask 022
+ cd /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD
+ KSRC_DIR=/home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3
+ [ -z y ]
+ [ ! -d /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3 ]
+ exit 0
Executing(%build): /bin/sh -e /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.65136
+ umask 022
+ cd /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD
+ cd linux-2.6.35.3
+ eval echo
+ echo
+ PKG_KERNEL_PATH_PRECONFIG=
+ eval echo
+ echo
+ PKG_KERNEL_KBUILD_PRECONFIG=
+ eval echo imx28evk_defconfig
+ echo imx28evk_defconfig
+ PKG_KERNEL_PRECONFIG=imx28evk_defconfig
+ KSRC_DIR=/home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3
+ : arm
+ : ccache /usr/bin/gcc -B/usr/bin/
+ : imx28evk_defconfig
+ : /home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx
+ : /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3
+ rm -f /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux
+ ln -s /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3 /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux
+ cd /home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3
+ KBOUT=
+ [ -n  -a  != . ]
+ KBOUT=.
+ KTARG=zImage
+ SYSCFG_KTARG=uImage
+ [ imx28evk_defconfig = defconfig ]
+ [ -f /home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx/imx28evk_defconfig.dev ]
+ CFG_PATH=/home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx/imx28evk_defconfig.dev
+ break
+ [ -z /home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx/imx28evk_defconfig.dev ]
+ [ arm = ppc -a -f arch/powerpc/Kconfig ]
+ [ -n  ]
+ [ -n /home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx/imx28evk_defconfig.dev ]
+ cp -f /home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx/imx28evk_defconfig.dev ./.config
+ [ -z  -a -n y -o -n  ]
+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ menuconfig
scripts/kconfig/mconf arch/arm/Kconfig


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

+ [ -f /home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx/imx28evk_defconfig.dev ]
+ diff -q ./.config /home/ubuntu/Projects/TionPro28/ltib/ltib/config/platform/imx/imx28evk_defconfig.dev
+ [ -n  ]
+ grep -q VERSION = 2 Makefile
+ grep -q PATCHLEVEL = 6 Makefile
+ grep -q CONFIG_LOCALVERSION_AUTO is not ./.config
+ [ %{kernel_series} = 2.4 ]
+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ uImage
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      arch/arm/mach-mx28/mx28evk.o
  CC      arch/arm/mach-mx28/mx28evk_pins.o
  CC      drivers/i2c/busses/i2c-mxs.o
  CC      arch/arm/mach-mx28/emi_settings.o
  LD      arch/arm/mach-mx28/built-in.o
  LD      drivers/i2c/busses/built-in.o
  LD      drivers/i2c/built-in.o
  CC      drivers/power/mxs/linux.o
drivers/power/mxs/linux.c: In function 'check_and_handle_5v_connection':
drivers/power/mxs/linux.c:311: warning: suggest parentheses around arithmetic in operand of '|'
drivers/power/mxs/linux.c: At top level:
drivers/power/mxs/linux.c:1140: warning: 'power_fiq_proc' defined but not used
  LD      drivers/power/mxs/mxs-battery.o
  LD      drivers/power/mxs/built-in.o
  LD      drivers/power/built-in.o
  CC      drivers/video/mxs/lcd_tionpro28.o
drivers/video/mxs/lcd_tionpro28.c:164:2: warning: #warning TODO
  LD      drivers/video/mxs/built-in.o
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 6 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
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      .tmp_vmlinux3
  KSYM    .tmp_kallsyms3.S
  AS      .tmp_kallsyms3.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gzip
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-2.6.35.3-571-gcca29a0
Created:      Wed Apr 15 07:33:08 2015
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2551452 Bytes = 2491.65 kB = 2.43 MB
Load Address: 0x40008000
Entry Point:  0x40008000
  Image arch/arm/boot/uImage is ready
+ grep -q ^CONFIG_MODULES= ./.config
+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ modules
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CC [M]  drivers/leds/led-class.o
  CC [M]  drivers/leds/leds-mxs-pwm.o
  Building modules, stage 2.
  MODPOST 75 modules
ERROR: "mxs_reset_block" [drivers/leds/leds-mxs-pwm.ko] undefined!
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
error: Bad exit status from /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.65136 (%build)


RPM build errors:
    Bad exit status from /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.65136 (%build)
Build time for kernel-2.6.35: 111 seconds

Failed building kernel-2.6.35


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Wed Apr 15 07:31:28 2015
Ended:   Wed Apr 15 07:33:19 2015
Elapsed: 111 seconds

These packages failed to build:
kernel-2.6.35

Build Failed

Exiting on error or interrupt

Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #9 : 15 Апреля, 2015, 15:03:26 »

Сделал только ./ltib -m scbuild -p kernel
Для интереса собрал все значимые варнинги (большинство конечно на патченных файлах)
(На будущее оставлю здесь)
....
 HOSTCC  scripts/basic/hash
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
scripts/kconfig/conf.c: In function 'conf_askvalue':
scripts/kconfig/conf.c:105: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function 'conf_choice':
scripts/kconfig/conf.c:307: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
.....

 CC      arch/arm/mach-mx28/clock.o
  CC      arch/arm/mm/fault-armv.o
  CC      arch/arm/plat-mxs/core.o
In file included from arch/arm/mach-mx28/clock.c:33:
arch/arm/mach-mx28/emi_settings.h:30: warning: function declaration isn't a prototype
arch/arm/mach-mx28/emi_settings.h:37: warning: function declaration isn't a prototype
arch/arm/mach-mx28/clock.c:1369: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1370: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1385: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1386: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c: In function 'saif_set_rate':
arch/arm/mach-mx28/clock.c:1414: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
arch/arm/mach-mx28/clock.c: At top level:
arch/arm/mach-mx28/clock.c:1493: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1502: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1547: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1548: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1557: warning: initialization from incompatible pointer type
arch/arm/mach-mx28/clock.c:1558: warning: initialization from incompatible pointer type
arch/arm/mm/init.c: In function 'mem_init':
arch/arm/mm/init.c:644: warning: format '%08lx' expects type 'long unsigned int', but argument 12 has type 'unsigned int'
  CC      arch/arm/mach-mx28/device.o
  CC      arch/arm/plat-mxs/clock.o

......



CC      arch/arm/plat-mxs/device.o
  CC      kernel/fork.o
  CC      arch/arm/mm/mmu.o
  CC      arch/arm/kernel/stacktrace.o
  CC      arch/arm/mm/vmregion.o
arch/arm/mach-mx28/device.c:1411: warning: return type defaults to 'int'
arch/arm/mach-mx28/device.c:1602: warning: initialization makes integer from pointer without a cast
arch/arm/mach-mx28/device.c: In function 'mx28_init_spdif':
arch/arm/mach-mx28/device.c:1412: warning: control reaches end of non-void function
arch/arm/mach-mx28/device.c: At top level:
arch/arm/mach-mx28/device.c:1349: warning: 'audio_clk_finit' defined but not used
  CC      arch/arm/plat-mxs/timer-nomatch.o



.........
CC      arch/arm/mach-mx28/mx28evk_pins.o
arch/arm/mach-mx28/mx28evk_pins.c:537: warning: large integer implicitly truncated to unsigned type
arch/arm/mach-mx28/mx28evk_pins.c:904: warning: large integer implicitly truncated to unsigned type
  CC      arch/arm/mach-mx28/gpio.o

.........

CC      arch/arm/mach-mx28/emi_settings.o
  CC      fs/char_dev.o
  CC      mm/page-writeback.o
  GEN     security/selinux/flask.h security/selinux/av_permissions.h
  CC      security/selinux/hooks.o
  CC      arch/arm/plat-mxs/cpufreq.o
  CC      ipc/syscall.o
In file included from arch/arm/mach-mx28/emi_settings.c:36:
arch/arm/mach-mx28/emi_settings.h:30: warning: function declaration isn't a prototype
arch/arm/mach-mx28/emi_settings.h:37: warning: function declaration isn't a prototype
arch/arm/mach-mx28/emi_settings.c:39: warning: function declaration isn't a prototype
arch/arm/mach-mx28/emi_settings.c:44: warning: function declaration isn't a prototype
  LD      arch/arm/plat-mxs/built-in.o
.......

CC      drivers/i2c/busses/i2c-mxs.o
  CC      fs/sysfs/file.o
  CC      fs/quota/quota_v2.o
  LD      fs/ramfs/ramfs.o
  LD      fs/ramfs/built-in.o
  CC      fs/ubifs/shrinker.o
  CC      fs/quota/quota_tree.o
  CC      fs/proc/generic.o
  CC      fs/nfs/sysctl.o
drivers/i2c/busses/i2c-mxs.c:78: warning: return type defaults to 'int'
drivers/i2c/busses/i2c-mxs.c: In function 'mxs_i2c_reset':
drivers/i2c/busses/i2c-mxs.c:83: warning: control reaches end of non-void function

..........
 

  CC      drivers/serial/mxs-duart.o
  CC      drivers/net/fec.o
  LD      drivers/rtc/built-in.o
  LD      drivers/ssb/built-in.o
  CC      drivers/scsi/hosts.o
  CC      net/ipv4/xfrm4_policy.o
  LD      drivers/spi/built-in.o
  CC      drivers/mtd/ubiblock.o
  CC      drivers/mtd/ubi/cdev.o
  CC      drivers/serial/mxs-auart.o
drivers/serial/mxs-duart.c:771: warning: initialization from incompatible pointer type

.............
 CC [M]  fs/udf/balloc.o
  CC [M]  fs/nls/nls_cp866.o
  CC [M]  drivers/leds/led-class.o
  CC [M]  fs/udf/dir.o
  CC [M]  fs/udf/file.o
  CC [M]  drivers/leds/leds-mxs-pwm.o
  CC [M]  fs/nls/nls_cp869.o
fs/udf/balloc.c: In function 'udf_bitmap_new_block':
fs/udf/balloc.c:263: warning: passing argument 1 of '_find_next_bit_le' from incompatible pointer type
/home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3/arch/arm/include/asm/bitops.h:163: note: expected 'const long unsigned int *' but argument is of type 'char *'
fs/udf/balloc.c:275: warning: passing argument 1 of '_find_next_bit_le' from incompatible pointer type
/home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3/arch/arm/include/asm/bitops.h:163: note: expected 'const long unsigned int *' but argument is of type 'char *'
fs/udf/balloc.c:301: warning: passing argument 1 of '_find_next_bit_le' from incompatible pointer type
/home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3/arch/arm/include/asm/bitops.h:163: note: expected 'const long unsigned int *' but argument is of type 'char *'
fs/udf/balloc.c:315: warning: passing argument 1 of '_find_next_bit_le' from incompatible pointer type
/home/ubuntu/Projects/TionPro28/ltib/ltib/rpm/BUILD/linux-2.6.35.3/arch/arm/include/asm/bitops.h:163: note: expected 'const long unsigned int *' but argument is of type 'char *'

.........
D [M]  drivers/usb/gadget/g_ether.o
drivers/net/wireless/ath6kl/os/linux/ar6000_drv.c:833: warning: initialization from incompatible pointer type
drivers/net/wireless/ath6kl/os/linux/ar6000_drv.c:834: warning: initialization from incompatible pointer type
  LD [M]  drivers/usb/gadget/g_file_storage.o
.........





Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #10 : 15 Апреля, 2015, 15:13:11 »

Собралось только когда светодиодный драйвер включил в ядро а не в виде отдельного модуля (т.е. не собирался у меня с параметром М).
Попутно вопрос к Danile.
А вообще обеспечивается функциональность драйверов на уровне подгружаемых модулей? Вроде modprobe есть в КФС
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Патчи для ядра 2.6.35
« Ответ #11 : 15 Апреля, 2015, 15:27:18 »

Модули ядра поддерживаются.
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #12 : 15 Апреля, 2015, 17:34:33 »

Еще хочу попробовать наложить тионовские патчи на 670 пропатченный 2.6.35.3 (пока первая попытка была неудачной)
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #13 : 17 Апреля, 2015, 14:03:22 »

Продолжу про ядро 2.6.35 с наложенными фрискейловскими 571 патчем (см. собственные localversion)
Ну это из виртуальной машины такое ядро (и скорее всего какие-то ранние тионовские патчи есть)
Вот лог загрузки девайса до наложенных патчей начиная с 24ХХХ от тиона
LLLLLLLFLCLLJUncompressing Linux... done, booting the kernel.
Linux version 2.6.35.3-571-gcca29a0 (ubuntu@ubuntu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #8 PREEMPT Fri Apr 10 13:17:01 EDT 2015
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX28EVK board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: -e noinitrd console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait ip=none gpmi
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 120220k/120220k available, 10852k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xfde00000 - 0xffe00000   (  32 MB)
    vmalloc : 0xc8800000 - 0xf0000000   ( 632 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0030000   ( 160 kB)
      .text : 0xc0030000 - 0xc04f7000   (4892 kB)
      .data : 0xc04f8000 - 0xc05354c0   ( 246 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:288
Console: colour dummy device 80x30
console [ttyAM0] enabled
Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
NET: Registered protocol family 16
regulator: vddd: 800 <--> 1575 mV at 1500 mV fast normal
regulator: vdddbo: 800 <--> 1575 mV fast normal
regulator: vdda: 1500 <--> 2275 mV at 1800 mV fast normal
vddio = 3380000, val=10
regulator: vddio: 2880 <--> 3680 mV at 3380 mV fast normal
regulator: overall_current: fast normal
regulator: vbus5v:
regulator: mxs-duart-1: fast normal
regulator: mxs-bl-1: fast normal
regulator: mxs-i2c-1: fast normal
regulator: mmc_ssp-1: fast normal
regulator: mmc_ssp-2: fast normal
regulator: charger-1: fast normal
regulator: power-test-1: fast normal
regulator: cpufreq-1: fast normal
i.MX IRAM pool: 120 KB@0xc8820000
Initializing GPMI pins
Initializing GPMI pins
usb DR wakeup device is registered
IMX usb wakeup probe
audit: cannot initialize inotify handle
bio: create slab <bio-0> at 0
SCSI subsystem initialized
Freescale USB OTG Driver loaded, $Revision: 1.55 $
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource mxs clock source
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 4096K
Bus freq driver module loaded
IMX usb wakeup probe
usb h1 wakeup device is registered
mxs_cpu_init: cpufreq init finished
audit: initializing netlink socket (disabled)
type=2000 audit(0.670:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) ?© 2001-2006 Red Hat, Inc.
msgmni has been set to 242
alg: No test for stdrng (krng)
cryptodev: driver loaded.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
get_max_memsize: mem_size now 614400
mxsfb_check_var: xres 640, yres 480, bpp 16
get_matching_pentry: 480:640:16 vs 480:640:16
get_matching_pentry: 480:640:16 vs 480:640:16
get_matching_pentry: 480:640:16 vs 480:640:16
mxsfb_pan_display: var->xoffset 0, info->var.xoffset 0
Console: switching to colour frame buffer device 80x30
mxsfb_pan_display: var->xoffset 0, info->var.xoffset 0
mxs-duart.0: ttyAM0 at MMIO 0x80074000 (irq = 47) is a DebugUART
UART set mode; UART - 0, mode - 0
mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a mxs-auart.0
Found APPUART 3.1.0
UART set mode; UART - 1, mode - 1
mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 113) is a mxs-auart.1
Found APPUART 3.1.0
UART set mode; UART - 2, mode - 2
mxs-auart.2: ttySP2 at MMIO 0x8006e000 (irq = 114) is a mxs-auart.2
Found APPUART 3.1.0
UART set mode; UART - 3, mode - 0
mxs-auart.3: ttySP3 at MMIO 0x80070000 (irq = 115) is a mxs-auart.3
Found APPUART 3.1.0
UART set mode; UART - 4, mode - 0
brd: module loaded
loop: module loaded
i.MX GPMI NFC
NFC: Version 1, 8-chip GPMI and BCH
Boot ROM: Version 1, Single-chip boot area, block mark swapping supported
Scanning for NAND Flash chips...
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
-----------------------------
NAND Flash Device Information
-----------------------------
Manufacturer      : Micron (0x2c)
Device Code       : 0xda
Cell Technology   : SLC
Chip Size         : 256 MiB
Pages per Block   : 64
Page Geometry     : 2048+64
ECC Strength      : 4 bits
ECC Size          : 512 B
Data Setup Time   : 20 ns
Data Hold Time    : 10 ns
Address Setup Time: 20 ns
GPMI Sample Delay : 6 ns
tREA              : Unknown
tRLOH             : Unknown
tRHOH             : Unknown
Description       : MT29F2G08
-----------------
Physical Geometry
-----------------
Chip Count             : 1
Page Data Size in Bytes: 2048 (0x800)
Page OOB Size in Bytes : 64
Block Size in Bytes    : 131072 (0x20000)
Block Size in Pages    : 64 (0x40)
Chip Size in Bytes     : 268435456 (0x10000000)
Chip Size in Pages     : 131072 (0x20000)
Chip Size in Blocks    : 2048 (0x800)
Medium Size in Bytes   : 268435456 (0x10000000)
------------
NFC Geometry
------------
ECC Algorithm          : BCH
ECC Strength           : 8
Page Size in Bytes     : 2112
Metadata Size in Bytes : 10
ECC Chunk Size in Bytes: 512
ECC Chunk Count        : 4
Payload Size in Bytes  : 2048
Auxiliary Size in Bytes: 16
Auxiliary Status Offset: 12
Block Mark Byte Offset : 1999
Block Mark Bit Offset  : 0
-----------------
Boot ROM Geometry
-----------------
Boot Area Count            : 1
Boot Area Size in Bytes    : 20971520 (0x1400000)
Stride Size in Pages       : 64
Search Area Stride Exponent: 2
Scanning device for bad blocks
Boot area protection is enabled.
Creating 2 MTD partitions on "gpmi-nfc-main":
0x000000000000-0x000001400000 : "gpmi-nfc-0-boot"
0x000001400000-0x000010000000 : "gpmi-nfc-general-use"
mxs-spi mxs-spi.0: Max possible speed 24000 = 24000000/2 kHz
mxs-spi mxs-spi.0: at 0x80014000 mapped to 0xF0014000, irq=84, bus 1, DMA ver_major 4
Freescale FlexCAN Driver
FEC Ethernet Driver
fec_enet_mii_bus: probed
Register PTP device as char /dev/ptp
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci: irq 92, io base 0x80090000
fsl-ehci fsl-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ARC USBOTG Device Controller driver (1 August 2005)
mice: PS/2 mouse device common for all mice
input: MXS touchscreen as /devices/virtual/input/input0
rtc-ds1307 0-0068: rtc core: registered m41t00 as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
Linux video capture interface: v2.00
WARNING : No battery connected !
Aborting power driver initialization
mxs-battery: probe of mxs-battery.0 failed with error 1
mxs watchdog: initialized, heartbeat 19 sec
mxs-mmc: MXS SSP Controller MMC Interface driver
mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 82 ERRIRQ 96
dcp dcp.0: DCP crypto enabled.!
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
mmc0: new high speed SD card at address 1234
sgtl5000-i2c 0-000a: SGTL5000 revision 17
mmcblk0: mmc0:1234 SA02G 1.85 GiB
 mmcblk0:
 p1 p2 p3
No device for DAI mxs-saif
asoc: SGTL5000 <-> mxs-saif mapping ok
Failed to add route LINE_OUT->Ext Spk
ALSA device list:
  #0: mxs-evk (SGTL5000)
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
regulator_init_complete: incomplete constraints, leaving vbus5v on
rtc-ds1307 0-0068: setting system clock to 2015-04-17 09:27:49 UTC (1429262869)
EXT2-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 179:3.
Freeing init memory: 160K
init started: BusyBox v1.15.0 ()
starting pid 1119, tty '': '/etc/rc.d/rcS'
« Последнее редактирование: 17 Апреля, 2015, 14:39:01 от miks »
Записан

miks

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 31
Re: Патчи для ядра 2.6.35
« Ответ #14 : 17 Апреля, 2015, 14:14:57 »

Наложил патчи как уже описывал выше собрал все
Во первых ни в какую не цепляет файловую систему с SD (пришлось c SD грузить Линух и дальше цеплять roofs по NFS)

Это очень принципиальный косяк (пробовал с разными флешками)

Во вторых пропало распознавание встроенной NAND - это тоже очень плохо!
 
В третьих RTC встроенный не видит никак а до этого все отлично работало.

Прилагаю лог загрузки видно что стало плохо в отличие от предыдущего

LLLLLLLFLCLLJUncompressing Linux... done, booting the kernel.
Linux version 2.6.35.3-571-gcca29a0 (ubuntu@ubuntu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #3 PREEMPT Wed Apr 15 10:10:13 EDT 2015
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX28EVK board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: -e noinitrd console=ttyAM0,115200 fec_mac=b0:11:22:33:44:b5 root=/dev/nfs nfsroot=172.22.0.139:/home/ubuntu/Projects/TionPro28/ltib/ltii
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 120260k/120260k available, 10812k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xfde00000 - 0xffe00000   (  32 MB)
    vmalloc : 0xc8800000 - 0xf0000000   ( 632 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0030000   ( 160 kB)
      .text : 0xc0030000 - 0xc04f3000   (4876 kB)
      .data : 0xc04f4000 - 0xc052b600   ( 222 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:288
Console: colour dummy device 80x30
console [ttyAM0] enabled
Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
NET: Registered protocol family 16
regulator: vddd: 800 <--> 1575 mV at 1500 mV fast normal
regulator: vdddbo: 800 <--> 1575 mV fast normal
regulator: vdda: 1500 <--> 2275 mV at 1800 mV fast normal
vddio = 3380000, val=10
regulator: vddio: 2880 <--> 3680 mV at 3380 mV fast normal
regulator: overall_current: fast normal
regulator: vbus5v:
regulator: mxs-duart-1: fast normal
regulator: mxs-bl-1: fast normal
regulator: mxs-i2c-1: fast normal
regulator: mmc_ssp-1: fast normal
regulator: mmc_ssp-2: fast normal
regulator: charger-1: fast normal
regulator: power-test-1: fast normal
regulator: cpufreq-1: fast normal
i.MX IRAM pool: 124 KB@0xc8820000
Initializing GPMI pins
usb DR wakeup device is registered
IMX usb wakeup probe
audit: cannot initialize inotify handle
bio: create slab <bio-0> at 0
SCSI subsystem initialized
Freescale USB OTG Driver loaded, $Revision: 1.55 $
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource mxs clock source
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 4096K
Bus freq driver module loaded
IMX usb wakeup probe
usb h1 wakeup device is registered
mxs_cpu_init: cpufreq init finished
audit: initializing netlink socket (disabled)
type=2000 audit(0.670:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 242
alg: No test for stdrng (krng)
cryptodev: driver loaded.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
mxs-fb: probe of mxs-fb.0 failed with error -22
mxs-duart.0: ttyAM0 at MMIO 0x80074000 (irq = 47) is a DebugUART
mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a mxs-auart.0
Found APPUART 3.1.0
mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 113) is a mxs-auart.1
Found APPUART 3.1.0
mxs-auart.2: ttySP2 at MMIO 0x8006e000 (irq = 114) is a mxs-auart.2
Found APPUART 3.1.0
mxs-auart.3: ttySP3 at MMIO 0x80070000 (irq = 115) is a mxs-auart.3
Found APPUART 3.1.0
brd: module loaded
loop: module loaded
i.MX GPMI NFC
NFC: Version 1, 8-chip GPMI and BCH
Boot ROM: Version 1, Single-chip boot area, block mark swapping supported
Scanning for NAND Flash chips...
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
Unrecognized NAND Flash device.
gpmi-nfc gpmi-nfc.0: Chip scan failed
gpmi-nfc: probe of gpmi-nfc.0 failed with error 1
mxs-spi mxs-spi.0: Max possible speed 24000 = 24000000/2 kHz
mxs-spi mxs-spi.0: at 0x80014000 mapped to 0xF0014000, irq=84, bus 1, DMA ver_major 4
Freescale FlexCAN Driver
FEC Ethernet Driver
fec_enet_mii_bus: probed
Register PTP device as char /dev/ptp
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci: irq 92, io base 0x80090000
fsl-ehci fsl-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ARC USBOTG Device Controller driver (1 August 2005)
mice: PS/2 mouse device common for all mice
input: MXS touchscreen as /devices/virtual/input/input0
i2c /dev entries driver
Linux video capture interface: v2.00
WARNING : No battery connected !
Aborting power driver initialization
mxs-battery: probe of mxs-battery.0 failed with error 1
mxs watchdog: initialized, heartbeat 19 sec
mxs-mmc: MXS SSP Controller MMC Interface driver
mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 82 ERRIRQ 96
dcp dcp.0: DCP crypto enabled.!
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
sgtl5000-i2c 0-000a: SGTL5000 revision 17
mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4 NCard 7.48 GiB (ro)
 mmcblk0:
 p1 p2 p3
No device for DAI mxs-saif
asoc: SGTL5000 <-> mxs-saif mapping ok
Failed to add route LINE_OUT->Ext Spk
ALSA device list:
  #0: mxs-evk (SGTL5000)
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=0:00, irq=-1)
eth1: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=0:01, irq=-1)
Sending DHCP requests .
PHY: 0:00 - Link is Up - 100/Full
DHCP/BOOTP: Ignoring delayed packet
DHCP/BOOTP: Ignoring delayed packet
., OK

« Последнее редактирование: 17 Апреля, 2015, 14:39:22 от miks »
Записан