DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-05-30 19:28:32

jcard
Member
From: Portugal
Registered: 2008-09-21
Posts: 289

reloaded on 2.6.29 doesn't work. Does kexec works?

It seems that 2.6.29.4 does not export sys_open() and sys_read() (although it exports sys_close).
However, those symbols appears on /proc/kallsym

In my desktop, with 2.6.27, those symbols are also not exported in fs/open.c

Does anybody knows if kexec works on arm in recent kernels?

dns323-reloaded-0.7.167> make
make -C linux M=/home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167 CROSS_COMPILE=arm-linux- ARCH=arm modules
make[1]: Entering directory `/home/jcard/Desktop/buildroot-2009.02/project_build_arm/dns323/linux-2.6.29.4'
  CC [M]  /home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/main.o
  AS [M]  /home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/reboot.o
  AS [M]  /home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/proc-arm926.o
  CC [M]  /home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/arm-mmu.o
  LD [M]  /home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/reloaded.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "cpu_feroceon_proc_fin" [/home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/reloaded.ko] undefined!
WARNING: "sys_open" [/home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/reloaded.ko] undefined!
WARNING: "sys_read" [/home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/reloaded.ko] undefined!
  CC      /home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/reloaded.mod.o
  LD [M]  /home/jcard/Desktop/buildroot-2009.02/dns323-reloaded-0.7.167/reloaded.ko
make[1]: Leaving directory `/home/jcard/Desktop/buildroot-2009.02/project_build_arm/dns323/linux-2.6.29.4'

# cat /proc/kallsyms | grep " sys_read$"
c0092338 T sys_read
# cat /proc/kallsyms | grep " sys_open$"
c008fa38 T sys_open
# cat /proc/kallsyms | grep cpu_feroceon_proc_fin
c002b938 T cpu_feroceon_proc_fin
# uname -r
2.6.29.4


Please consider discussing Alt-F at http://groups.google.com/group/alt-f/topics
Please consider filling Alt-F bugs at http://code.google.com/p/alt-f/issues/list

Offline

 

#2 2009-06-01 23:31:29

jcard
Member
From: Portugal
Registered: 2008-09-21
Posts: 289

Re: reloaded on 2.6.29 doesn't work. Does kexec works?

jcard wrote:

I
Does anybody knows if kexec works on arm in recent kernels?

The anwser is yes, kexec-tools-2.0.0 with only a minor "patch" works fine.
I was able to kexec a 2.6.29.4 kernel plus initrd from within a 2.6.29.4 kernel loaded using fonz "reloaded" from the firmware kernel.
The advantage is fast turnaround when tunning the new kernel and new initrd (which I cross-compile using buildroot).

The minor "patch" is just to comment line 18 of kexec-tools-2.0.0/kexec/phys_arch.c,
//if (strcmp(utsname.machine, arches[i].machine) == 0)
kexec was natively build, using fonz devtools.

Last edited by jcard (2009-06-01 23:31:48)


Please consider discussing Alt-F at http://groups.google.com/group/alt-f/topics
Please consider filling Alt-F bugs at http://code.google.com/p/alt-f/issues/list

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB