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-11-05 14:55:34

quiksilv
New member
Registered: 2009-10-27
Posts: 4

Machine-id

When I extract the kernel image from the dlink dns323_firmware_107. If i check the first 8 bytes of the image i do not see any kind of machine ID, but when I check the kernel out of a freshly compiled dns323 debian netboot.img I see the 0x0606 id !

Anyone know what im doing wrong?

Offline

 

#2 2009-11-05 15:25:05

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Machine-id

You're looking for the wrong number. Firmware kernels use a different machine type code: 524 (= 0x020c).

Offline

 

#3 2009-11-06 04:04:26

quiksilv
New member
Registered: 2009-10-27
Posts: 4

Re: Machine-id

Am I looking in the wrong place?

Factory DNS-323 Firmware 1.07 Kernel:

dd if=uImage bs=128 count=1|hexdump

0000000 0527 5619 654c a0bd cb49 1357 1600 e029
0000010 0000 0080 0000 0080 6fa7 f278 0205 0002
0000020 694c 756e 2d78 2e32 2e36 3231 362e 612d
0000030 6d72 0031 0000 0000 0000 0000 0000 0000
0000040 0000 e1a0 0000 e1a0 0000 e1a0 0000 e1a0
*
0000060 0002 ea00 2818 016f 0000 0000 29e0 0016
0000070 7001 e1a0 8000 e3a0 2000 e10f 0003 e312

Debian-installer DNS-323 Firmware Kernel from netboot.img

dd if=uImage bs=128 count=1|hexdump

0000000 0527 5619 084d 21ea f24a a3d4 1500 f01b
0000010 0000 0080 0000 0080 d1a6 1da7 0205 0002
0000020 6544 6962 6e61 6b20 7265 656e 006c 0000
0000030 0000 0000 0000 0000 0000 0000 0000 0000
0000040 1c06 e3a0 1006 e381 0000 e1a0 0000 e1a0
0000050 0000 e1a0 0000 e1a0 0000 e1a0 0000 e1a0
0000060 0000 e1a0 0000 e1a0 0002 ea00 2818 016f
0000070 0000 0000 1be8 0015 7001 e1a0 8002 e1a0

Above you can see the machine id inserted before the kernel at address 0000040 "1c06 e3a0 1006 e381" and in the original kernel i don't see any id at all?

Offline

 

#4 2009-11-06 09:22:29

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Machine-id

Can you explain why you expect a specific machine-id at that place at all? Actually, it's the bootloader that knows the machine id. It passes the id to the kernel in the r1 register.

Offline

 

#5 2009-11-06 10:28:22

quiksilv
New member
Registered: 2009-10-27
Posts: 4

Re: Machine-id

I just assumed since netboot.cfg in the debian installer does a "devio > $(TEMP)/dns-323/kernel 'wl 0xe3a01c06,4' 'wl 0xe3811006,4'" to the start of the kernel image... then adds the 64byte uBoot header. So I assumed it was the area of the kernel that holds what it expects to be passed from the r1 register in the kernel head.S code

Offline

 

#6 2009-11-06 10:38:38

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Machine-id

Many ARM kernels accept more than one machine id.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB