maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] kernel-plus for Harmattan (https://talk.maemo.org/showthread.php?t=86543)

nieldk 2013-10-28 10:04

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Quote:

Originally Posted by juiceme (Post 1382879)
I'll hook up my debugging console and check what's going on there, when I have some time to do it.

I need that :) Can you give some info on a debugging console (I pray its USB/serial available on boottime) :) ?

juiceme 2013-10-28 10:20

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Quote:

Originally Posted by nieldk (Post 1382881)
I need that :) Can you give some info on a debugging console (I pray its USB/serial available on boottime) :) ?

Serial port, available on the N9 when you remove the SIM tray and look at the PCB in the slot. There are small golden contacts in two rows near the edge of the PCB.

The first and second from the right when you hold the device screen facing up are GND and TxD, in that order. Tho one behind the TxD is RxD, but you only need that if you want to send data to the device, for seeing boot messages hooking up to the first row contacts is enough.

To connect to your computer you need a serial-1.8vTTL level shifter - USB adapter, like this for example: CP2102-USB-2-0-to-UART-TTL-Converter, they cost under 2 eur in Ebay.

juiceme 2013-10-28 12:38

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Quote:

Originally Posted by juiceme (Post 1382883)
The first and second from the right when you hold the device screen facing up are GND and TxD, in that order. Tho one behind the TxD is RxD.

I started thinking about this, and the way I explained it is actually very badly, so I need to try to make some ascii art for you :D

Now, imagine that you are looking at the device from above, so that it is facing away from you, display side up but so that you see the "NOKIA" text upside down. I tried sketching it for you in the picture below. The simslot is marked with a dotted line inside the device.

The contacts marked "G" are GND, "T" is TxD from the device and "R" is RxD to the device. Other pins you do not care about when using the serial console.

Also, to get some use from the console you need to enable it to output the device boot messages. This can be done two ways;
  • The first way is to set the device in R&D-mode, with the flags "--enable-rd-mode --set-rd-flags=serial-console".
    This works even if you are not using ubiboot.
  • The second way is to set the serial console flags via ubiboot command line injection, putting for example string "G_OS2_INIT_CMDLINE_APPENDS="console=ttyS0,115200n 8" in your ubiboot.conf file.

Code:

.                                            .
.                                            .
.                                            .
!                                            !
!                                            !
!                                            !
!                                            !
!                                            !
!                                            !
!                                            !
!                                            !
!  ...................                        !
!  .    SIM slot    .                        !
!  .                .                        !
!  .                .                        !
!  .                .                        !
!  .                .                        !
!  . x x x x x x G R .                        !
!  . x x x x x x G R .                        !
!  .                .                        !
!  . x x x x x x G T .                        !
!  . x x x x x x G T .                        !
+--+-----------------+------------------------+


juiceme 2013-10-28 17:19

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Quote:

Originally Posted by juiceme (Post 1382879)
So, I'll hook up my debugging console and check what's going on there, when I have some time to do it.


Here's the kernel boot log now. It seems to hang on a panic pretty nicely there :D
For some reason it seems that the kernel cannot execute "/sbin/preinit_harmattan" even though it's right on there and has the execute permissions on?


Code:

Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 2.6.32.61-plus-20121301 (juice@alaspin) (gcc version 4.4.1 ('cs2009q3-hard-67-sb16') ) #1 PREEMPT Mon Oct 28 18:30:59 EET 2013
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Nokia RM-696 board
Reserving 14680064 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP3630 ES1.2-hs (l2cache iva sgx neon isp 192mhz_clk )
SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 254976
Kernel command line: init=/sbin/preinit_harmattan root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=ttyS0,115200n8 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config),16384k@3840k(kernel),2048k@20224k(log),469248k@22272k(var),32768k@491520k(moslo) bootreason=sw_rst bootmode=normal nolo=2.3.6 product_name=RM-696 dbi-type=V5JW dbi-vendor=1 dbi-size=73 dbi-uid=013844524D0009415312 imei=357923044841148 g_nokia.iSerialNumber=357923044841148 serialnumber=CON756953 omap_sec.kci=958 gpio=cmt_apeslpx:93:sysfs:output,cmt_en:23:sysfs:init_active:output,cmt_rst_rq:88:sysfs:init_active:output,sleep_ind:92:sysfs:output omapdss.def_disp_enabled=1 vhash=285e93eebfdded180a3ffdf0a42c0d09b0d8ce8a product_model=N9 hwid=1603
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
allocated 5242880 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 1002MB 2MB = 1004MB total
Memory: 1008256KB available (4756K code, 407K data, 152K init, 0K highmem)
SLUB: Genslabs=9, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Experimental preemptable hierarchical RCU implementation.
NR_IRQS:402
Clocking rate (Crystal/Core/MPU): 38.4/390/600 MHz
Reprogramming SDRC clock to 390400000 Hz
GPMC revision 5.0
IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP GPIO hardware version 2.5
OMAP clockevent source: GPTIMER1 at 32768 Hz
sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
Console: colour dummy device 80x30
Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
Security Framework initialized
Aegis: init vhash=285e93eebfdded180a3ffdf0a42c0d09b0d8ce8a
Mount-cache hash table entries: 512
Initializing cgroup subsys memory
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
RM-696 board, rev 1603
MUX: setup H16_34XX_SDRC_CKE0 (0xfa002262): 0x0100 -> 0x0000
MUX: setup H17_34XX_SDRC_CKE1 (0xfa002264): 0x0100 -> 0x0000
SmartReflex class 1.5 driver: initialized
OMAP DMA hardware revision 5.0
Reserving DMA channels 0 and 1 for HS ROM code
bio: create slab <bio-0> at 0
regulator: VSDIO: 1800 mV normal standby
regulator: vbat: 3700 mV
regulator: VEMMC: 2900 mV normal standby
i2c_omap i2c_omap.1: bus 1 rev4.0 at 2900 kHz
twl4030: PIH (irq 7) chaining IRQs 368..375
twl4030: power (irq 373) chaining IRQs 376..383
twl4030: gpio (irq 368) chaining IRQs 384..401
regulator: VUSB1V5: 1500 mV normal standby
regulator: VUSB1V8: 1800 mV normal standby
regulator: VUSB3V1: 3100 mV normal standby
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
regulator: VPLL1: 1800 mV normal standby
regulator: VIO: 1800 mV normal standby
regulator: VMMC1: 1850 <--> 3150 mV normal standby
regulator: VDAC: 1800 mV normal standby
regulator: VAUX2: 1800 mV normal standby
regulator: VINTANA1: 1500 mV normal standby
regulator: VINTANA2: 2750 mV normal standby
regulator: VINTDIG: 1500 mV normal standby
regulator: VPLL2: 1800 mV normal standby
regulator: VMMC2: 3000 mV normal standby
regulator: VSIM: 1800 mV normal standby
regulator: VAUX1: 2800 mV normal standby
regulator: VAUX3: 2800 mV normal standby
regulator: VAUX4: 2800 mV normal standby
i2c_omap i2c_omap.2: bus 2 rev4.0 at 400 kHz
i2c_omap i2c_omap.3: bus 3 rev4.0 at 400 kHz
Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource 32k_counter
musb_hdrc: version 6.0, musb-dma, peripheral, debug=0
musb_hdrc: USB Peripheral mode controller at fa0ab000 using DMA, IRQ 92
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
dspbridge_init: 600000 bytes @ bea00000
hs_init: omap_hs driver
sec_init: omap_sec driver
fuse init (API version 7.13)
msgmni has been set to 1969
Aegis: Netlink socket created
restok: ready
creds: ready
credp: active
io scheduler noop registered (default)
io scheduler deadline registered
io scheduler cfq registered
OMAP DSS rev 2.0
OMAP DISPC rev 3.0
OMAP VENC rev 2
OMAP DSI rev 1.0
Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
serial8250.2: ttyS0 at MMIO 0x49020000 (irq = 74) is a TI16750
console [ttyS0] enabled
brd: module loaded
loop: module loaded
OneNAND driver initializing
omap2-onenand omap2-onenand: initializing on CS0, phys base 0x04000000, virtual base f0040000, freq 83 MHz
Muxed OneNAND 512MB 1.8V 16-bit (0x50)
OneNAND version = 0x0232
6 cmdlinepart partitions found on MTD device omap2-onenand
Creating 6 MTD partitions on "omap2-onenand":
0x000000000000-0x000000100000 : "bootloader"
0x000000100000-0x0000003c0000 : "config"
0x0000003c0000-0x0000013c0000 : "kernel"
0x0000013c0000-0x0000015c0000 : "log"
mtdoops: Attached to MTD device 3
0x0000015c0000-0x00001e000000 : "var"
0x00001e000000-0x000020000000 : "moslo"
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
input: ECI Accessory as /devices/virtual/input/input0
twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as rtc0
i2c /dev entries driver
Linux media interface: v0.10
Linux video capture interface: v2.00
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
HACK: TWL5031 WDT can't be disabled. Automatic WDT refresh started
cpuidle: using governor ladder
cpuidle: using governor menu
omap_sham_mod_init: loading omap-sham driver
omap-sham omap-sham: hw accel on OMAP rev 0.9
Advanced Linux Sound Architecture Driver Version 1.0.21.
input: Atmel mXT Touchscreen as /devices/platform/i2c_omap.2/i2c-2/2-004b/input/input1
atmel_mxt: Atmel mXT Touchscreen v1.6 (0x29b82f) var:0x1 bld:0xab
tpa6130a2 2-0060: UNTESTED version detected (3)
No device for DAI omap-mcbsp-dai-0
No device for DAI omap-mcbsp-dai-1
No device for DAI omap-mcbsp-dai-2
No device for DAI omap-mcbsp-dai-3
No device for DAI omap-mcbsp-dai-4
mmc0: hardware reset done
asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
input: dfl61-twl4030 Jack as /devices/platform/soc-audio.0/sound/card0/input2
DFL61 TWL SoC init done (config 4)
asoc: tlv320dac33 <-> omap-mcbsp-dai-1 mapping ok
ALSA device list:
  #0: dfl61-twl4030 (twl4030)
  #1: dfl61-dac33 (tlv320dac33)
misc iphb: Module registered in 2.6.32.61-plus-20121301, built Oct 28 2013 18:20:02
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Bluetooth: L2CAP ver 2.14
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Power Management for TI OMAP3.
SmartReflex device[1] initialized
SmartReflex device[2] initialized
input: gpio-keys as /devices/platform/gpio-keys/input/input3
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
panel-nokia-dsi display0: skipping HW reset
panel-nokia-dsi display0: pyrenees panel revision fe.91.96
regulator_init_complete: incomplete constraints, leaving rm696_vmmc1 on
asoc: WL1273 BT/FM codec <-> omap-mcbsp-dai-2 mapping ok
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed MMC card at address 0001
mmcblk0: mmc0:0001 HYNIX  14.8 GiB
 mmcblk0:mmc_queue_do_make_request process kmmcd (pid 15), read to sector 0, sectors 8
 p1 p2 p3
mmc1: card claims to support voltages below the defined range. These will be ignored.
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new SDIO card at address 0001
EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode
VFS: Mounted root (ext4 filesystem) on device 179:2.
Freeing init memory: 152K
Aegis: Invoking userspace helper
Aegis: vhash code matched to validator-init
Aegis: Creating new mount point hashlist edc20000
validator-init: done (0,0x0,0x1c7,0x7)Aegis: enabled (config data protection)
Aegis: hashlist initialized preinit_harmattan
Aegis: preinit_harmattan verification failed (no reference hash)
Failed to execute /sbin/preinit_harmattan.  Attempting defaults...

Mounting a tmpfs over /dev...done.
done.
aegis start/running
------------[ cut here ]------------
WARNING: at kernel/sched.c:2621 wake_up_process+0x28/0x40()
Modules linked in:
Backtrace:
[<b003271c>] (dump_backtrace+0x0/0x110) from [<b03b8354>] (dump_stack+0x18/0x1c)
 r6:b046eb27 r5:00000a3d r4:00000000 r3:00000000
[<b03b833c>] (dump_stack+0x0/0x1c) from [<b0065ae4>] (warn_slowpath_common+0x50/0x68)
[<b0065a94>] (warn_slowpath_common+0x0/0x68) from [<b0065b14>] (warn_slowpath_null+0x18/0x1c)
 r7:00000000 r6:00000000 r5:00000000 r4:ee642700
[<b0065afc>] (warn_slowpath_null+0x0/0x1c) from [<b006216c>] (wake_up_process+0x28/0x40)
[<b0062144>] (wake_up_process+0x0/0x40) from [<b00304e0>] (arch_ptrace+0x1dc/0x4bc)
 r4:ee642700 r3:00000000
[<b0030304>] (arch_ptrace+0x0/0x4bc) from [<b006f1e4>] (sys_ptrace+0xc4/0x1c0)
 r6:00000000 r5:00000007 r4:ee642700
[<b006f120>] (sys_ptrace+0x0/0x1c0) from [<b002ef80>] (ret_fast_syscall+0x0/0x2c)
 r8:b002f104 r7:0000001a r6:00000003 r5:00000000 r4:000a8250
r3:00000000
---[ end trace 7a395fb109ecd02d ]---


juiceme 2013-10-28 19:46

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
I just noticed that it's not aegis-neutered...
I'll recompile it with aegis patches to go.

juiceme 2013-10-28 20:30

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Allright, found it :D
uploading image soonest...

------------------------------

Edit: I was way too optimistic :(

Managed to boot past the first panic but it fails at later stage...
This requires a lot of effort to go thru I guess.

------------------------------

Edit: OK now it's looking better. :)
Had a mixup of modules so the correction I made actually helped.

juiceme 2013-10-28 23:44

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Allright, here's my fresh image:

http://www.swagman.org/juice/ubiboot...-plus_29102013
(md5sum=521eca00a9102b7b8a7243a08fad3171)

I have now run fairly extensive tests with it (barring of course any long-time stability tests :D)

The kernel image is compatible with the modules from Hurrian's original kernel, so you need to just download the new zImage and drop it into your /boot/ & edit ubiboot.conf accordingly.

Fixes: aegis neutering and patching the task selection priority on process wakeup.

lbee 2013-10-29 01:08

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Many thanks, it worked flawless. You so good :D

TMavica 2013-10-29 01:18

Sorry, would i ask the full feature of .61 plus?

Hurrian 2013-10-29 02:55

Re: [Announce] [13.10.27] kernel-plus 2.6.32.61 for Harmattan
 
Quote:

Originally Posted by TMavica (Post 1383055)
Sorry, would i ask the full feature of .61 plus?

Security and bug fixes on top of Nokia's plain old 2.6.32.54, mostly.

2.6.32 is a long term support kernel, it should be getting patches for some time.

EDIT:
First post updated with new binaries. Thanks juiceme!


All times are GMT. The time now is 16:10.

vBulletin® Version 3.8.8