Jump to content
XPEnology Community

liwei

Transition Member
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

liwei's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi quicknick, for a patchable kernel tree, you may take my repo on github for a reference, https://github.com/liwei/xpenology-3.x this is the base of XPEnoboot kernel(but is the 3.2.40 version). you can take the most commits directly from my repo, but the synoacl part which you may reference the code of this repo: https://github.com/liwei/asustor-xpenology Happy hacking
  2. You can just try it and report.
  3. I have fixed this issue in our development repository, please wait a moment for a new version to release.
  4. Embbed ramdisk is not a problem, you can always override/overlay it with your custom ramdisk.
  5. Hi Vortex, Great thanks for your working on xpenoboot. I don't know which method synology used to protect DSM, but I like your patch for the protected files (especially the "PWNED BY VTX" part ...LOL). Now I'm wondering if we could pass the protection in another way, which don't patch the protect files but simulate a genius synology environment(by kernel modules? or qemu emulation?), do you thinks this is possible?
  6. liewei does seem to have more up to date source code. But do you know what version/build of DSM that is building from? I'd like to run a diff against them to figure out what patches he has added. It was based on 4493 IIRC, for what I modified from original source, you can reference the commit history. Thanks.
  7. Hey guys, please check my repo on github, it's the same kernel as nanoboot use. https://github.com/liwei/xpenology-3.x
  8. Hi sancome, The file structure is same, but the use bzip2 compressed the tar archive. Just use the following command to extract those files: bzImage: tail -c +262 AS-6XX_2.1.1.R3B2.img | bunzip2 | tar xf - initramfs: tail -c +3109163 AS-6XX_2.1.1.R3B2.img | bunzip2 | tar xf - builtin.tgz: tail -c +13189717 AS-6XX_2.1.1.R3B2.img | bunzip2 | tar xf - Good luck!
  9. booted up with qemu successfully. here is the boot log: don't know how to use builtin.tgz now, it seems we should extract builtin.tgz to the root partition? boot log [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.39 (root@cross-builder) (gcc version 4.6.3 (x86 32-bit toolchain - ASUSTOR Inc.) ) #1 SMP PREEMPT Tue Mar 11 00:55:36 CST 2014 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 000000003fffe000 (usable) [ 0.000000] BIOS-e820: 000000003fffe000 - 0000000040000000 (reserved) [ 0.000000] BIOS-e820: 00000000feffc000 - 00000000ff000000 (reserved) [ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved) [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] DMI 2.4 present. [ 0.000000] last_pfn = 0x3fffe max_arch_pfn = 0x1000000 [ 0.000000] found SMP MP-table at [c00f1800] f1800 [ 0.000000] init_memory_mapping: 0000000000000000-0000000037bfe000 [ 0.000000] RAMDISK: 3f65e000 - 3fff0000 [ 0.000000] Allocated new RAMDISK: 3726c000 - 37bfdaa4 [ 0.000000] Move RAMDISK from 000000003f65e000 - 000000003ffefaa3 to 3726c000 - 37bfdaa3 [ 0.000000] ACPI: RSDP 000f16a0 00014 (v00 BOCHS ) [ 0.000000] ACPI: RSDT 3fffe450 00034 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001) [ 0.000000] ACPI: FACP 3fffff80 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001) [ 0.000000] ACPI: DSDT 3fffe490 01137 (v01 BXPC BXDSDT 00000001 INTL 20140114) [ 0.000000] ACPI: FACS 3fffff40 00040 [ 0.000000] ACPI: SSDT 3ffff700 00838 (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001) [ 0.000000] ACPI: APIC 3ffff610 00078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001) [ 0.000000] ACPI: HPET 3ffff5d0 00038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001) [ 0.000000] 132MB HIGHMEM available. [ 0.000000] 891MB LOWMEM available. [ 0.000000] mapped low ram: 0 - 37bfe000 [ 0.000000] low ram: 0 - 37bfe000 [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0x00000001 -> 0x00001000 [ 0.000000] Normal 0x00001000 -> 0x00037bfe [ 0.000000] HighMem 0x00037bfe -> 0x0003fffe [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[2] active PFN ranges [ 0.000000] 0: 0x00000001 -> 0x0000009f [ 0.000000] 0: 0x00000100 -> 0x0003fffe [ 0.000000] Using APIC driver default [ 0.000000] ACPI: PM-Timer IO Port: 0xb008 [ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) [ 0.000000] ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0]) [ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) [ 0.000000] Using ACPI (MADT) for SMP configuration information [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000 [ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs [ 0.000000] Allocating PCI resources starting at 40000000 (gap: 40000000:beffc000) [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 11 pages/cpu @f6800000 s24384 r0 d20672 u2097152 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259996 [ 0.000000] Kernel command line: console=tty0 console=ttyS0 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Initializing CPU#0 [ 0.000000] allocated 4194256 bytes of page_cgroup [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups [ 0.000000] Initializing HighMem for node 0 (00037bfe:0003fffe) [ 0.000000] Memory: 1019184k/1048568k available (3457k kernel code, 28992k reserved, 1556k data, 368k init, 135168k highmem) [ 0.000000] virtual kernel memory layout: [ 0.000000] fixmap : 0xfff18000 - 0xfffff000 ( 924 kB) [ 0.000000] pkmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xf83fe000 - 0xffbfe000 ( 120 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf7bfe000 ( 891 MB) [ 0.000000] .init : 0xc14e6000 - 0xc1542000 ( 368 kB) [ 0.000000] .data : 0xc13604f6 - 0xc14e5740 (1556 kB) [ 0.000000] .text : 0xc1000000 - 0xc13604f6 (3457 kB) [ 0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok. [ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptable hierarchical RCU implementation. [ 0.000000] RCU-based detection of stalled CPUs is disabled. [ 0.000000] Verbose stalled-CPUs detection is disabled. [ 0.000000] NR_IRQS:512 [ 0.000000] Console: colour VGA+ 80x25 [ 0.000000] console [tty0] enabled [ 0.000000] console [ttyS0] enabled [ 0.000000] Fast TSC calibration failed [ 0.000000] TSC: PIT calibration matches HPET. 2 loops [ 0.000000] Detected 2255.487 MHz processor. [ 0.020004] Calibrating delay loop (skipped), value calculated using timer frequency.. 4510.97 BogoMIPS (lpj=9021948) [ 0.024007] pid_max: default: 32768 minimum: 301 [ 0.026189] Mount-cache hash table entries: 512 [ 0.030173] Initializing cgroup subsys ns [ 0.032015] ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup. [ 0.036009] Initializing cgroup subsys cpuacct [ 0.038132] Initializing cgroup subsys memory [ 0.040044] Initializing cgroup subsys devices [ 0.042035] Initializing cgroup subsys freezer [ 0.044008] Initializing cgroup subsys blkio [ 0.045895] Initializing cgroup subsys perf_event [ 0.048122] mce: CPU supports 10 MCE banks [ 0.054095] SMP alternatives: switching to UP code [ 0.161324] Freeing SMP alternatives: 20k freed [ 0.163432] ACPI: Core revision 20110316 [ 0.165107] Enabling APIC mode: Flat. Using 1 I/O APICs [ 0.172276] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 0.211440] CPU0: Intel QEMU Virtual CPU version 1.6.2 stepping 03 [ 0.216012] Performance Events: unsupported p6 CPU model 2 no PMU driver, software events only. [ 0.228023] Brought up 1 CPUs [ 0.230163] Total of 1 processors activated (4510.97 BogoMIPS). [ 0.232772] devtmpfs: initialized [ 0.236065] xor: automatically using best checksumming function: pIII_sse [ 0.256029] pIII_sse : 7013.000 MB/sec [ 0.257952] xor: using function: pIII_sse (7013.000 MB/sec) [ 0.260112] NET: Registered protocol family 16 [ 0.262544] ACPI: bus type pci registered [ 0.264059] PCI: Using configuration type 1 for base access [ 0.266403] pcimode=0x0 [ 0.273099] bio: create slab at 0 [ 0.340098] raid6: int32x1 785 MB/s [ 0.408055] raid6: int32x2 661 MB/s [ 0.476109] raid6: int32x4 670 MB/s [ 0.544117] raid6: int32x8 626 MB/s [ 0.612057] raid6: mmxx1 2865 MB/s [ 0.680049] raid6: mmxx2 3258 MB/s [ 0.748074] raid6: sse1x1 1907 MB/s [ 0.816062] raid6: sse1x2 2530 MB/s [ 0.884061] raid6: sse2x1 3383 MB/s [ 0.952075] raid6: sse2x2 4166 MB/s [ 0.953977] raid6: using algorithm sse2x2 (4166 MB/s) [ 0.958745] ACPI: Interpreter enabled [ 0.960077] ACPI: (supports S0 S3 S5) [ 0.962483] ACPI: Using IOAPIC for interrupt routing [ 0.969651] ACPI: No dock devices found. [ 0.971528] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug [ 0.972276] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) [ 0.980159] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI [ 0.984092] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB [ 0.994366] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11) [ 0.997790] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11) [ 1.001996] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11) [ 1.005808] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11) [ 1.009047] ACPI: PCI Interrupt Link [LNKS] (IRQs *9) [ 1.012291] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none [ 1.015888] vgaarb: loaded [ 1.016318] SCSI subsystem initialized [ 1.020387] usbcore: registered new interface driver usbfs [ 1.022762] usbcore: registered new interface driver hub [ 1.024112] usbcore: registered new interface driver ethub [ 1.028145] usbcore: registered new device driver usb [ 1.032335] PCI: Using ACPI for IRQ routing [ 1.034931] HPET: 3 timers in total, 0 timers will be used for per-cpu timer [ 1.044086] Switching to clocksource hpet [ 1.046064] pnp: PnP ACPI init [ 1.047742] ACPI: bus type pnp registered [ 1.049081] pnp: PnP ACPI: found 9 devices [ 1.051040] ACPI: ACPI bus type pnp unregistered [ 1.097806] NET: Registered protocol family 2 [ 1.101378] IP route cache hash table entries: 32768 (order: 5, 131072 bytes) [ 1.104425] TCP established hash table entries: 131072 (order: 8, 1048576 bytes) [ 1.108451] TCP bind hash table entries: 65536 (order: 7, 524288 bytes) [ 1.111344] TCP: Hash tables configured (established 131072 bind 65536) [ 1.113961] TCP reno registered [ 1.115529] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 1.119717] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 1.122554] NET: Registered protocol family 1 [ 1.124582] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 1.127792] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 1.130622] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 1.133604] Trying to unpack rootfs image as initramfs... [ 2.780643] Freeing initrd memory: 9800k freed [ 2.787418] microcode: CPU0 sig=0x623, pf=0x0, revision=0x1 [ 2.789897] microcode: Microcode Update Driver: v2.00 , Peter Oruba [ 2.809561] highmem bounce pool size: 64 pages [ 2.811723] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 2.818479] VFS: Disk quotas dquot_6.5.2 [ 2.820366] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 2.824347] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 2.830674] fuse init (API version 7.16) [ 2.835413] msgmni has been set to 1745 [ 2.839671] alg: No test for stdrng (krng) [ 2.842130] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 2.845551] io scheduler noop registered [ 2.847378] io scheduler deadline registered [ 2.849261] io scheduler cfq registered (default) [ 2.851704] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 2.883586] serial8250: ttyS0 at I/O 0x3f8 (irq = 38) is a 16550A [ 2.979780] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 3.016709] brd: module loaded [ 3.019524] loop: module loaded [ 3.021902] physmap platform flash device: 08000000 at c0000000 [ 3.031517] vmap allocation for size 134221824 failed: use vmalloc= to increase size. [ 3.035084] physmap-flash physmap-flash.0: Failed to ioremap flash region [ 3.037773] physmap-flash: probe of physmap-flash.0 failed with error -5 [ 3.043518] Intel(R) SPI FLASH CONTROLLER Driver built on Mar 11 2014 @ 00:50:05 [ 3.047562] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 3.050495] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 3.053036] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 [ 3.055535] e1000 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 [ 3.059934] GBE working in Real Phy Mode [ 3.849528] Refined TSC clocksource calibration: 2255.382 MHz. [ 3.852010] Switching to clocksource tsc [ 3.939919] e1000 0000:00:03.0: eth0: (PCI:33MHz:32-bit) 52:54:00:12:34:56 [ 3.943507] e1000 0000:00:03.0: eth0: Intel(R) PRO/1000 Network Connection [ 3.946411] e1000e: Intel(R) PRO/1000 Network Driver - 1.3.10-k2 [ 3.948852] e1000e: Copyright(c) 1999 - 2011 Intel Corporation. [ 3.951379] UDMA - Intel (R) UDMA Driver - 1.0.0 [ 3.951381] [ 3.954570] UDMA - Copyright (c) 2012 Intel Corperation. [ 3.954572] [ 3.958142] eth_udma0: Features changed: 0x00004800 -> 0x00004000 [ 3.960778] eth_udma1: Features changed: 0x00004800 -> 0x00004000 [ 3.963292] UDMA Network Device Driver init [ 3.965324] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.968028] Initializing USB Mass Storage driver... [ 3.970158] usbcore: registered new interface driver usb-storage [ 3.976268] USB Mass Storage support registered. [ 3.979535] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12 [ 3.985265] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 3.988736] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 3.991099] mousedev: PS/2 mouse device common for all mice [ 3.993856] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 [ 4.001490] i2c /dev entries driver [ 4.009952] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input1 [ 4.014048] md: linear personality registered for level -1 [ 4.016505] md: raid0 personality registered for level 0 [ 4.019175] md: raid1 personality registered for level 1 [ 4.021575] md: raid10 personality registered for level 10 [ 4.023987] md: raid6 personality registered for level 6 [ 4.026307] md: raid5 personality registered for level 5 [ 4.028494] md: raid4 personality registered for level 4 [ 4.030826] device-mapper: uevent: version 1.0.3 [ 4.032938] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com [ 4.041272] cpuidle: using governor ladder [ 4.047279] usbcore: registered new interface driver usbhid [ 4.050974] usbhid: USB HID core driver [ 4.052688] input: Unspecified device as /devices/virtual/input/input2 [ 4.055900] Virtual Mouse Driver Initialized. [ 4.057948] oprofile: using NMI interrupt. [ 4.059920] TCP cubic registered [ 4.061572] Initializing XFRM netlink socket [ 4.066743] NET: Registered protocol family 10 [ 4.071046] NET: Registered protocol family 17 [ 4.074077] NET: Registered protocol family 15 [ 4.077009] 802.1Q VLAN Support v1.8 Ben Greear [ 4.081511] All bugs added by David S. Miller [ 4.083967] Registering the dns_resolver key type [ 4.086185] Using IPI No-Shortcut mode [ 4.088356] /asustor/cross/as-3xx/branches/B_2_1_0_20131031/source/linux-2.6.39/drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 4.096362] Freeing unused kernel memory: 368k freed [ 4.102990] Write protecting the kernel text: 3460k [ 4.105783] Write protecting the kernel read-only data: 1252k [ 4.108586] NX-protecting the kernel data: 2684k net.ipv4.neigh.default.gc_thresh1 = 512 net.ipv4.neigh.default.gc_thresh2 = 2048 net.ipv4.neigh.default.gc_thresh3 = 4096 Loading Platform driver... [ 4.991692] PAL driver init... [ 4.996615] Unable to access PCI bus 0 device 31 function 0. [ 5.004256] Device: Unknown Device ID:Vendor ID 0x12378086 [ 5.006902] Revision ID 2 [ 5.008740] Unable to determine deivce ID Call to pal_get_soc_info failed. Loading Etron USB driver... Starting nasmand... No SPI NOR flash MTD device node found in "/sys/class/mtd" Error opening device SPI FLASH Please ensure that: - The flash device is not opened twice at same time - flash driver is properly loaded - Device node is created oflash_open() failed No SPI NOR flash MTD device node found in "/sys/class/mtd" Error opening device SPI FLASH Please ensure that: - The flash device is not opened twice at same time - flash driver is properly loaded - Device node is created oflash_open() failed nasmand: Can't add [/usr/builtin/etc/resource.conf] into inotify watch list! (-2) nasmand: Can't add [/usr/builtin/etc/rsyslog.d/asustor.conf] into inotify watch list! (-2) Starting netmand... [ 5.726370] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None [ 5.809384] e1000: eth0 enable PHY SSC function [ 6.268727] 8021q: adding VLAN 0 to HW filter on device eth0 netmand: Settle network: 0 Initializing random number generator... done. Starting stormand... Asustor Storage Management Daemon Ver. 1.1.2 stormand: The system is booting from [] with filesystem type [ext2]... (0) No SPI NOR flash MTD device node found in "/sys/class/mtd" Error opening device SPI FLASH Please ensure that: - The flash device is not opened twice at same time - flash driver is properly loaded - Device node is created oflash_open() failed No SPI NOR flash MTD device node found in "/sys/class/mtd" Error opening device SPI FLASH Please ensure that: - The flash device is not opened twice at same time - flash driver is properly loaded - Device node is created oflash_open() failed stormand: Reactivate Nas storage system: -335 Starting crond... crond[1916]: crond: crond (busybox 1.19.3) started, log level 8 Starting lighttpd... Starting ssh... Starting hostmand... Host Management Daemon. Ver. 0.8.0 Starting httpredir... Starting ecmand... [ 16.749327] asleddrv: module license 'ASUSTOR' taints kernel. [ 16.759519] Disabling lock debugging due to kernel taint EC Management Daemon. Ver. 1.0.0 Starting watchmand... Send system log error! (-111) Asustor Storage Management Daemon Ver. 1.1.2 Please press Enter to activate this console. /bin/sh: can't access tty; job control turned off / # ls / bin home lib64 opt run sys var dev init linuxrc proc sbin tmp volume0 etc lib mnt root share usr / # Hide
×
×
  • Create New...