[OpenWrt-Devel] Make package foo conflict with /replace package bar
Hello, If i have a package called foo, How do it specify in its Makefile (package/foo/Makefile) that it conflicts with / replaces a package called bar. When that happens the compilation is aborted until package bar is deselected. Regards, Harish Badrinath ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/4] New device Asus RT-G32 B1
Here is SPI-bus implementation for ralink devices. Index: target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c === --- target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c (revision 26927) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c (working copy) @@ -217,3 +217,24 @@ platform_device_register(rt305x_wdt_device); } + +static struct resource rt305x_spi_resources[] = { + { + .name = spi-regs, + .flags = IORESOURCE_MEM, + .start = RT305X_SPI_BASE, + .end = RT305X_SPI_BASE + RT305X_SPI_SIZE - 1, + }, +}; + +static struct platform_device rt305x_spi_device = { + .name = ramips-spi, + .id = 0, + .resource = rt305x_spi_resources, + .num_resources = ARRAY_SIZE(rt305x_spi_resources), +}; + +void __init rt305x_register_spi(void) +{ + platform_device_register(rt305x_spi_device); +}; Index: target/linux/ramips/files/arch/mips/ralink/rt305x/devices.h === --- target/linux/ramips/files/arch/mips/ralink/rt305x/devices.h (revision 26927) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/devices.h (working copy) @@ -21,6 +21,7 @@ void rt305x_register_ethernet(void); void rt305x_register_wifi(void); void rt305x_register_wdt(void); +void rt305x_register_spi(void); #endif /* __RT305X_DEVICES_H */ Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_spi.h === --- target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_spi.h (revision 0) +++ target/linux/ramips/files/arch/mips/include/asm/mach-ralink/ramips_spi.h (revision 0) @@ -0,0 +1,45 @@ +/* + * SPI Controller + * + * Copyright (C) 2011 Sergiy pira...@gmail.com + * + * This code is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ +#ifndef __RAMIPS_SPIFLASH_H +#define __RAMIPS_SPIFLASH_H + +#define RAMIPS_SPI_STAT 0x00 +#define RAMIPS_SPI_CFG 0x10 +#define RAMIPS_SPI_CTL 0x14 +#define RAMIPS_SPI_DATA 0x20 + +/* SPISTAT register bit field */ +#define SPISTAT_BUSY 0x0001 + +/* SPICFG register bit field */ +#define SPICFG_LSBFIRST (08) +#define SPICFG_MSBFIRST (18) +#define SPICFG_RXCLKEDGE_FALLING (15)/* rx on the falling edge of the SPICLK signal */ +#define SPICFG_TXCLKEDGE_FALLING (14)/* tx on the falling edge of the SPICLK signal */ +#define SPICFG_SPICLK_DIV2 (00)/* system clock rate / 2 */ +#define SPICFG_SPICLK_DIV4 (10)/* system clock rate / 4 */ +#define SPICFG_SPICLK_DIV8 (20)/* system clock rate / 8 */ +#define SPICFG_SPICLK_DIV16 (30)/* system clock rate / 16 */ +#define SPICFG_SPICLK_DIV32 (40)/* system clock rate / 32 */ +#define SPICFG_SPICLK_DIV64 (50)/* system clock rate / 64 */ +#define SPICFG_SPICLK_DIV128 (60)/* system clock rate / 128 */ +#define SPICFG_SPICLK_DISABLE (70)/* system clock disabled */ +#define SPICFG_SPICLKPOL (16)/* spi clk*/ + +/* SPICTL register bit field */ +#define SPICTL_HIZSDO (13) +#define SPICTL_STARTWR (12) +#define SPICTL_STARTRD (11) +#define SPICTL_SPIENA (10) + +#define CFG_CLK_DIV SPICFG_SPICLK_DIV16 + +#endif Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h === --- target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h (revision 26927) +++ target/linux/ramips/files/arch/mips/include/asm/mach-ralink/rt305x_regs.h (working copy) @@ -42,6 +42,7 @@ #define RT305X_UART0_SIZE 0x100 #define RT305X_PIO_SIZE 0x100 #define RT305X_UART1_SIZE 0x100 +#define RT305X_SPI_SIZE 0x100 #define RT305X_FLASH1_SIZE (16 * 1024 * 1024) #define RT305X_FLASH0_SIZE (8 * 1024 * 1024) Index: target/linux/ramips/files/drivers/spi/ramips_spi.c === --- target/linux/ramips/files/drivers/spi/ramips_spi.c (revision 0) +++ target/linux/ramips/files/drivers/spi/ramips_spi.c (revision 0) @@ -0,0 +1,524 @@ +/* + * ramips_spi.c -- Ralink RT288x/RT305x SPI controller driver + * + * Author: Sergiy pira...@gmail.com + * Copyright (C) 2011 OpenWrt.org. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include linux/init.h +#include linux/clk.h +#include linux/err.h +#include linux/delay.h +#include linux/platform_device.h +#include linux/err.h +#include linux/io.h +#include linux/spi/spi.h +#include asm/unaligned.h + + +#if defined(CONFIG_RALINK_RT305X) +#include rt305x.h +#include rt305x_regs.h +#elif defined(CONFIG_RALINK_RT288X) +#include rt288x.h +#include rt288x_regs.h +#else +#error Add support for your platform +#endif + +#include
[OpenWrt-Devel] [PATCH 2/4] New device Asus RT-G32 B1
Due buggy nature of this bus, the kernel init section must not use addresses at 0x8020...0x8022. Thanks Wive-NG developers for ingo about this bug. This patch must be added into target/linux/ramips/patches-2.6.37 directory +++ a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -92,6 +92,12 @@ SECTIONS } _edata = .; /* End of data section */ +#ifdef CONFIG_SPI_RAMIPS + /* This hack need for SPI devices work only */ + /* init need start 0x8022 */ + . = 0x8022; +#endif + /* will be freed after init */ . = ALIGN(PAGE_SIZE); /* Init code and data */ __init_begin = .; ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 3/4] New device Asus RT-G32 B1
Our device seems don't have any additional leds, so we don't use gpio-leds. Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig === --- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (revision 26927) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig (working copy) @@ -20,6 +20,11 @@ select RALINK_DEV_GPIO_BUTTONS select RALINK_DEV_GPIO_LEDS +config RT305X_MACH_RT_G32_REVB + bool Asus RT-G32 revB board support + default y + select RALINK_DEV_GPIO_BUTTONS + config RT305X_MACH_V22RW_2X2 bool Ralink AP-RT3052-V22RW-2X2 board support default y Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-rt-g32-revb.c === --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-rt-g32-revb.c (revision 0) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-rt-g32-revb.c (revision 0) @@ -0,0 +1,117 @@ +/* + * Asus RT-G32 rev B board support + * + * Copyright (C) 2011 Sergiy pira...@gmail.com + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +#include linux/init.h +#include linux/platform_device.h +#include linux/spi/spi.h +#include linux/spi/flash.h +#include linux/mtd/mtd.h +#include linux/mtd/partitions.h + +#include asm/mach-ralink/machine.h +#include asm/mach-ralink/dev-gpio-buttons.h +#include asm/mach-ralink/rt305x.h +#include asm/mach-ralink/rt305x_regs.h + +#include devices.h + +#define RT_G32B_GPIO_BUTTON_WPS 0 /* active low */ +#define RT_G32B_GPIO_BUTTON_RESET 10 /* active low */ + +#define RT_G32B_BUTTONS_POLL_INTERVAL 20 + +#ifdef CONFIG_MTD_PARTITIONS +static struct mtd_partition rt_g32b_partitions[] = { + { + .name = u-boot, + .offset = 0, + .size = 0x03, + .mask_flags = MTD_WRITEABLE, + }, { + .name = devdata, + .offset = 0x03, + .size = 0x01, + .mask_flags = MTD_WRITEABLE, + }, { + .name = devconf, + .offset = 0x04, + .size = 0x01, + .mask_flags = MTD_WRITEABLE, + }, { + .name = kernel, + .offset = 0x05, + .size = 0x0d, + }, { + .name = rootfs, + .offset = 0x12, + .size = 0x2e, + }, { + .name = openwrt, + .offset = 0x05, + .size = 0x3b, + } +}; +#endif /* CONFIG_MTD_PARTITIONS */ + +const struct flash_platform_data rt_g32b_flash = { + .type = mx25l3205d, + .name = spi-flash, +#ifdef CONFIG_MTD_PARTITIONS + .parts = rt_g32b_partitions, + .nr_parts = ARRAY_SIZE(rt_g32b_partitions), +#endif +}; + +struct spi_board_info __initdata rt_g32b_spi_slave_info[] = { + { + .modalias = m25p80, + .platform_data = rt_g32b_flash, + .irq = -1, + .max_speed_hz = 1000, + .bus_num = 0, + .chip_select = 0, + }, +}; + +static struct gpio_button rt_g32b_gpio_buttons[] __initdata = { + { + .desc = reset, + .type = EV_KEY, + .code = KEY_RESTART, + .threshold = 3, + .gpio = RT_G32B_GPIO_BUTTON_RESET, + .active_low = 1, + }, { + .desc = wps, + .type = EV_KEY, + .code = KEY_WPS_BUTTON, + .threshold = 3, + .gpio = RT_G32B_GPIO_BUTTON_WPS, + .active_low = 1, + } +}; + +static void __init rt_g32b_init(void) +{ + rt305x_gpio_init((RT305X_GPIO_MODE_GPIO RT305X_GPIO_MODE_UART0_SHIFT) | RT305X_GPIO_MODE_SPI); + + spi_register_board_info(rt_g32b_spi_slave_info, ARRAY_SIZE(rt_g32b_spi_slave_info)); + rt305x_register_spi(); + + rt305x_register_ethernet(); + ramips_register_gpio_buttons(-1, RT_G32B_BUTTONS_POLL_INTERVAL, + ARRAY_SIZE(rt_g32b_gpio_buttons), + rt_g32b_gpio_buttons); + rt305x_register_wifi(); + rt305x_register_wdt(); +} + +MIPS_MACHINE(RAMIPS_MACH_RT_G32_REVB, RT-G32-revB, Asus RT-G32 revB, + rt_g32b_init); Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile === --- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile (revision 26927) +++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile (working copy) @@ -13,6 +13,7 @@ obj-$(CONFIG_RT305X_MACH_F5D8235_V2)+= mach-f5d8235-v2.o obj-$(CONFIG_RT305X_MACH_DIR_300_REVB) += mach-dir-300-revb.o +obj-$(CONFIG_RT305X_MACH_RT_G32_REVB) += mach-rt-g32-revb.o obj-$(CONFIG_RT305X_MACH_V22RW_2X2) += mach-v22rw-2x2.o obj-$(CONFIG_RT305X_MACH_WCR150GN) += mach-wcr150gn.o obj-$(CONFIG_RT305X_MACH_WHR_G300N) += mach-whr-g300n.o Index: target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h === --- target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h (revision 26927) +++ target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h (working copy) @@ -19,6 +19,7 @@ /* RT3050 based machines */ RAMIPS_MACH_DIR_300_REVB, /* D-Link DIR-300 rev B */ + RAMIPS_MACH_RT_G32_REVB, /* Asus RT-G32 rev B */ /* RT3052 based machines */
[OpenWrt-Devel] [PATCH 4/4] New device Asus RT-G32 B1
This is additional patch for mac80211 package. Due we have flash, that not physically mapped, we must get EEPROM data from specific MTD partition. --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c @@ -40,6 +40,11 @@ #include linux/platform_device.h #include linux/eeprom_93cx6.h +#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X) +#include linux/mtd/mtd.h +#undef DEBUG +#endif + #include rt2x00.h #include rt2x00pci.h #include rt2x00soc.h @@ -87,11 +92,31 @@ static void rt2800pci_mcu_status(struct #if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X) static void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev) { - void __iomem *base_addr = ioremap(0x1F04, EEPROM_SIZE); - - memcpy_fromio(rt2x00dev-eeprom, base_addr, EEPROM_SIZE); + struct mtd_info *mtd; + int i, retlen = 0; - iounmap(base_addr); + /* try to locate partition with eeprom data */ + mtd = get_mtd_device_nm(Factory); + if (IS_ERR(mtd)) + mtd = get_mtd_device_nm(factory); + if (IS_ERR(mtd)) + mtd = get_mtd_device_nm(factory_default); + if (IS_ERR(mtd)) + mtd = get_mtd_device_nm(devconf); + + if (IS_ERR(mtd)) { + ERROR(rt2x00dev, can't find device eeprom area, trying physmap device\n); + void __iomem *base_addr = ioremap(0x1F04, EEPROM_SIZE); + memcpy_fromio(rt2x00dev-eeprom, base_addr, EEPROM_SIZE); + iounmap(base_addr); + } else { + if (mtd-read(mtd, 0x00, EEPROM_SIZE, retlen, rt2x00dev-eeprom) 0) { + ERROR(rt2x00dev, eeprom area read error\n); + put_mtd_device(mtd); + return; + } + put_mtd_device(mtd); + } } #else static inline void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/4] New device Asus RT-G32 B1
Hello, On Friday 10 June 2011 11:13:11 Sergiy wrote: Here is SPI-bus implementation for ralink devices. It is better if you can post the patch inline with your email, makes the commenting easier. in ramips_spi_write_read(), there is no check if xfer-len is not bigger than the controller FIFO size, you might want to add a check on this. The FIFO is also not know, do you know what is its size? -- Florian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/4] New device Asus RT-G32 B1
Hello, On Friday 10 June 2011 11:15:49 Sergiy wrote: Due buggy nature of this bus, the kernel init section must not use addresses at 0x8020...0x8022. Thanks Wive-NG developers for ingo about this bug. This patch must be added into target/linux/ramips/patches-2.6.37 directory Can you elaborate as to why the kernel cannot use this addresse range? Is this a restriction from the SPI bus not being able to transfer buffers which are in the range 0x8020-0x8022? -- Florian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/4] New device Asus RT-G32 B1
10.06.2011 12:44, Florian Fainelli пише: Can you elaborate as to why the kernel cannot use this addresse range? Is this a restriction from the SPI bus not being able to transfer buffers which are in the range 0x8020-0x8022? When kernel starting unpatched, it hangs when cleaning init section. Here is kernel log: Linux version 2.6.37.6 (tipok@mythbox) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #1 Wed May 25 11:51:56 EEST 2011 bootconsole [early0] enabled CPU revision is: 0001964c (MIPS 24Kc) Ralink RT3350 id:1 rev:2 running at 320.00 MHz Determined physical RAM map: memory: 0100 @ (usable) Initrd not found or empty - disabling initrd Zone PFN ranges: Normal 0x - 0x1000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x - 0x1000 Yes, this is restriction of SPI bus usage, unfortunaly I don't know exactly what happens. But before I found, that this range is not usable for init section, i tried to add some noise to kernel, here is my noise patch: https://dev.openwrt.org/attachment/ticket/9461/106-ramips_kernel_start_dirtyhack.patch With this patch the kernel also started fine, seems that i'm just moved init section outside that memory hole. The Ralink support only says that they fixed it in new processors. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 4/4] New device Asus RT-G32 B1
On Fri, Jun 10, 2011 at 11:19 AM, Sergiy pira...@gmail.com wrote: This is additional patch for mac80211 package. Due we have flash, that not physically mapped, we must get EEPROM data from specific MTD partition. This doesn't look suitable for upstream (rt2x00 driver) inclusion. A cleaner way would be to read the eeprom contents in the platform module and pass a pointer to the rt2x00 driver via platform_data. Helmut ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/4] New device Asus RT-G32 B1
On Friday 10 June 2011 11:55:47 Sergiy wrote: 10.06.2011 12:44, Florian Fainelli пише: Can you elaborate as to why the kernel cannot use this addresse range? Is this a restriction from the SPI bus not being able to transfer buffers which are in the range 0x8020-0x8022? When kernel starting unpatched, it hangs when cleaning init section. Here is kernel log: Linux version 2.6.37.6 (tipok@mythbox) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #1 Wed May 25 11:51:56 EEST 2011 bootconsole [early0] enabled CPU revision is: 0001964c (MIPS 24Kc) Ralink RT3350 id:1 rev:2 running at 320.00 MHz Determined physical RAM map: memory: 0100 @ (usable) Initrd not found or empty - disabling initrd Zone PFN ranges: Normal 0x - 0x1000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x - 0x1000 Yes, this is restriction of SPI bus usage, unfortunaly I don't know exactly what happens. Are you sure about that? There are very little chances the SPI rx/tx buffers are being allocated in such a range. Is not it rather because the bootloader is decompressing the kernel around this range, and the memory contents are not correctly flushed? But before I found, that this range is not usable for init section, i tried to add some noise to kernel, here is my noise patch: https://dev.openwrt.org/attachment/ticket/9461/106-ramips_kernel_start_dirt yhack.patch With this patch the kernel also started fine, seems that i'm just moved init section outside that memory hole. The Ralink support only says that they fixed it in new processors. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Adding entry to /etc/hosts
Hi, which is the openwrt way to have a particular package to add an entry to /etc/hosts at build or install time? Is it ok to add an echo into a uci-defaults file? R. -- Roberto Riggio, Ph.D. CREATE-NET Network Security Solutions for Pervasive Computing Systems (iNSPIRE) Senior Researcher Via alla Cascata 56/D - 38123 Povo Trento (Italy) e-mail: roberto.rig...@create-net.org Tel: (+39) 0461 408400 - interno/extension 708 Fax: (+39) 0461 421157 www.create-net.org/~rriggio The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited according to the Italian Law 196/2003 of the Legislature. If you received this in error, please contact the sender and delete the material from any computer. Le informazioni contenute in questo messaggio di posta elettronica e nei file allegati sono da considerarsi strettamente riservate. Il loro utilizzo e' consentito esclusivamente al destinatario del messaggio, per le finalita' indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla cancellazione del messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalita' diverse, costituisce comportamento contrario ai principi dettati dal D. Lgs. 196/2003. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Adding entry to /etc/hosts
On 10/06/11 13:56, Roberto Riggio wrote: Hi, which is the openwrt way to have a particular package to add an entry to /etc/hosts at build or install time? Is it ok to add an echo into a uci-defaults file? R. hi Roberto, can you give an exymple of where you want to do this ? John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Adding entry to /etc/hosts
On Fri, Jun 10, 2011 at 7:56 AM, Roberto Riggio roberto.rig...@create-net.org wrote: Hi, which is the openwrt way to have a particular package to add an entry to /etc/hosts at build or install time? Is it ok to add an echo into a uci-defaults file? you could just add it to package/base-files/files/etc/hosts before the build -- Roberto Riggio, Ph.D. CREATE-NET Network Security Solutions for Pervasive Computing Systems (iNSPIRE) Senior Researcher Via alla Cascata 56/D - 38123 Povo Trento (Italy) e-mail: roberto.rig...@create-net.org Tel: (+39) 0461 408400 - interno/extension 708 Fax: (+39) 0461 421157 www.create-net.org/~rriggio The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited according to the Italian Law 196/2003 of the Legislature. If you received this in error, please contact the sender and delete the material from any computer. Le informazioni contenute in questo messaggio di posta elettronica e nei file allegati sono da considerarsi strettamente riservate. Il loro utilizzo e' consentito esclusivamente al destinatario del messaggio, per le finalita' indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla cancellazione del messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalita' diverse, costituisce comportamento contrario ai principi dettati dal D. Lgs. 196/2003. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Adding entry to /etc/hosts
Hi, I would like to have a new entry like: 127.0.0.1 my_name after a package is installed. the package that i'm installing actually runs an embedded web server. In this way if I'm attached to the router using the lan I can point the browser to http://my_name/ instead of http://10.0.0.1/ R. Il 10/06/2011 13:59, John Crispin ha scritto: On 10/06/11 13:56, Roberto Riggio wrote: Hi, which is the openwrt way to have a particular package to add an entry to /etc/hosts at build or install time? Is it ok to add an echo into a uci-defaults file? R. hi Roberto, can you give an exymple of where you want to do this ? John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Roberto Riggio, Ph.D. CREATE-NET Network Security Solutions for Pervasive Computing Systems (iNSPIRE) Senior Researcher Via alla Cascata 56/D - 38123 Povo Trento (Italy) e-mail: roberto.rig...@create-net.org Tel: (+39) 0461 408400 - interno/extension 708 Fax: (+39) 0461 421157 www.create-net.org/~rriggio The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited according to the Italian Law 196/2003 of the Legislature. If you received this in error, please contact the sender and delete the material from any computer. Le informazioni contenute in questo messaggio di posta elettronica e nei file allegati sono da considerarsi strettamente riservate. Il loro utilizzo e' consentito esclusivamente al destinatario del messaggio, per le finalita' indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla cancellazione del messaggio stesso dal Vostro sistema. Trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalita' diverse, costituisce comportamento contrario ai principi dettati dal D. Lgs. 196/2003. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Adding entry to /etc/hosts
Hi, without knowing the details here I would argue that a config domain entry in /etc/config/dhcp may be better due to the following reasons: - I believe users expect /etc/hosts to be unmanaged, means nothing writes in there - The domain entries in /etc/config/dhcp appear in the gui and can be deleted - Programmatically adding an entry to a uci file is usually safer than appending to native config files ~ Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel