Resync adm5120 kernel config, lzma-loader fixes from Gabor
authorFlorian Fainelli <florian@openwrt.org>
Fri, 8 Jun 2007 12:58:55 +0000 (12:58 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 8 Jun 2007 12:58:55 +0000 (12:58 +0000)
SVN-Revision: 7536

target/linux/adm5120-2.6/config/default
target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c
target/linux/adm5120-2.6/image/lzma-loader/src/loader.lds
target/linux/adm5120-2.6/image/lzma-loader/src/lzma-data.lds

index f4361a9c8cd8a21db38ad2e14ec21f9a93d66131..d83efc2baf063f7cede7bdb804bde4cfe34cc195 100644 (file)
@@ -15,7 +15,7 @@ CONFIG_CIFS_EXPERIMENTAL=y
 CONFIG_CIFS_STATS2=y
 CONFIG_CIFS_WEAK_PW_HASH=y
 CONFIG_CIFS_XATTR=y
-CONFIG_CMDLINE="console=ttyS0,115200 rootfs=jffs2,squashfs init=/etc/preinit"
+CONFIG_CMDLINE="console=ttyS0,115200 rootfs=jffs2,squashfs,yaffs2 init=/etc/preinit"
 # CONFIG_CPU_BIG_ENDIAN is not set
 CONFIG_CPU_HAS_LLSC=y
 CONFIG_CPU_HAS_PREFETCH=y
@@ -63,8 +63,6 @@ CONFIG_GENERIC_GPIO=y
 CONFIG_HAS_IOMEM=y
 CONFIG_HAS_IOPORT=y
 CONFIG_HID=y
-# CONFIG_HID_DEBUG is not set
-# CONFIG_HID_FF is not set
 CONFIG_HWMON=y
 # CONFIG_HWMON_DEBUG_CHIP is not set
 CONFIG_HW_HAS_PCI=y
@@ -88,6 +86,7 @@ CONFIG_IPV6_PRIVACY=y
 CONFIG_IPV6_ROUTE_INFO=y
 CONFIG_IPV6_TUNNEL=m
 CONFIG_IP_NF_TARGET_CLUSTERIP=m
+CONFIG_IRQ_CPU=y
 # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
 CONFIG_JFFS2_FS_DEBUG=0
 CONFIG_JFFS2_FS_POSIX_ACL=y
@@ -268,7 +267,6 @@ CONFIG_USB_ADM5120_HCD=y
 # CONFIG_USB_UHCI_HCD is not set
 # CONFIG_USB_USBNET is not set
 # CONFIG_USB_USBNET_MII is not set
-CONFIG_USB_YEALINK=m
 # CONFIG_USB_ZD1201 is not set
 CONFIG_VM_EVENT_COUNTERS=y
 CONFIG_YAFFS_9BYTE_TAGS=y
index f867e20dc5110f51d088e62a4f7e98ebd4fbeb2c..ffc87ee0db56a3bd4e03a4757e97cdb014ef9314 100644 (file)
@@ -277,9 +277,20 @@ void decompress_entry(unsigned long reg_a0, unsigned long reg_a1,
                (unsigned char*)LOADADDR, osize, &i);
 #endif
        if (res != LZMA_RESULT_OK) {
-               print_str("failed, LzmaDecode error: ");
-               print_hex(res);
-               print_str("\n");
+               print_str("failed!\n");
+               print_str("LzmaDecode: ");
+               switch (res) {
+               case LZMA_RESULT_DATA_ERROR:
+                       print_str("data error\n");
+                       break;
+               case LZMA_RESULT_NOT_ENOUGH_MEM:
+                       print_str("not enough memory\n");
+                       break;
+               default:
+                       print_str("unknown error, err=0x");
+                       print_hex(res);
+                       print_str("\n");
+               }
                halt();
        }
 
index f9358257c967902766c7c66e393843779fbae88d..bae70fb6eae8ee2fc3ec40d4d66534d3a3582627 100644 (file)
@@ -6,6 +6,8 @@ SECTIONS {
                *(.text.*)
                *(.rodata)
                *(.rodata.*)
+               . = ALIGN(16);
+               *(.data.lzma)
        }
 
        .data : {
index b6984d742a41be43ccc1d6f82eac7b25c1798fe2..abf756ba13a587a6976744830939272dd98ece33 100644 (file)
@@ -1,7 +1,6 @@
 OUTPUT_ARCH(mips)
 SECTIONS {
-       .rodata : {
-               . = ALIGN(16);
+       .data.lzma : {
                _lzma_data_start = .;
                *(.data)
                _lzma_data_end = .;