self attributionn-noncomm...

Embedded C Programming and the ATMEL AVR Book & CD_EEWorld电子工程世界搜索中心
搜索范围:
一周以内&&&&
搜索到约<span style="color:#7项结果
The MPEG-4 Book,The MPEG-4 Book……
.cn/detail/solarelec/255560 发布时间:
zynq fpga 的相关书籍。...
.cn/detail/issacdxf/551559 发布时间:
提示SDK不对,具体是什么提示呢? yhy_042 51590
[quote]引用 3 楼 91program 的回复:
提示SDK不对,具体是什么提示呢?
系统提示如下:
An application targeting a Standard SDK for Windows CE.NET and built for the ARMV4I CPU cannot be...
.cn/thread--1.html 发布时间:
嵌入式C编程与Atmel AVR...
.cn/detail/froglucky/419092 发布时间:
嵌入式C编程与atmel AVR...
.cn/detail/jiajian213 发布时间:
嵌入式C编程与Atmel AVR...
.cn/detail/小瑞/218043 发布时间:
嵌入式C编程与Atmel+AVR,免费奉送!免费的才是真正的共享!...
.cn/detail/admin/97 发布时间:
嵌入式C编程与Atmel+AVR...
.cn/detail/老夫子/14439 发布时间:
14:01:08&&&作者:&&&来源:电子工程世界 汤宏琳
关键字:设计 厂商 触摸屏 模拟 稳压 电流 晶振
  CPU构架-这种8位AVR CPU面向高级编程语言 (如C语言) 设计,支持16位和32位运算以及具有16位和24位内存指针。这种AVR CPU具有单周期操作功能,并有...
.cn/thread--1.html 发布时间:
This book enunciates and illustrates features and basic principles of C++. Itis aimed at experienced C users who wish to learn C++. It can also beinteresting for beginner C++ users who leaved out...
.cn/detail/nkyqsl/471641 发布时间:
  32位MCU应用日渐繁盛,8位MCU相对稳定,16位MCU夹在中间,处境较为尴尬。正是在众多厂商认为32位MCU已成趋势时,此时,Atmel却逆势而行,高调发布了其8位AVR XMEGA系列,主要瞄准8位、16位MCU应用。
Atmel AVR产品市场总监Ingar Fredriksen
  “我们非常关注8位MCU市场。”Atmel AVR产品市场总监Ingar Fredriksen...
.cn/news/eda/200803/article_18203.html 发布时间:
/*-----------------------------------------------------------------------------&& 2. Specify the clock rate of the CPU (SYSCLKOUT) in nS.
&&&&& Take into account the input clock frequency and the PLL multiplier&&&&& your...
.cn/thread--1.html 发布时间:
《The C Programming Language》C语言中的经典制作深入学习C 不可或缺...
.cn/detail/lamas/410424 发布时间:
This book keeps the exposition as straightforward as possible and enables you to cut through the maze of acronyms, hacking tools, rumored weaknesses, and vague vendor security claims to make educated...
.cn/detail/PKelect/378171 发布时间:
this application program demonstrate programming and simulation of the on-chip CAN (controller area network) interface of the C167/ST10-F168. The sample source code can be compiled using keil C166...
.cn/detail/nkyqsl/469153 发布时间:
this a client server programming that send a message to server and acknowledgement from the server....
.cn/detail/lamaba/449037 发布时间:
Master the essentials of concurrent programming,including testing and debuggingThis textbook examines languages and libraries for multithreaded programming. Readers learn how to create threads in...
.cn/detail/mamselc/455497 发布时间:
This is the 1500 question and answer really great related technical programming delphi, each question is a programming tips may surprise you do not doubt about its performance....
.cn/detail/crazyjackson/444906 发布时间:
engineering and technology book...
.cn/detail/nkyqsl/342746 发布时间:
Signal and system with matlab is a book which introduce the techniques for signal processing and how to utilize matlab for the work...
.cn/detail/baidu_linker/461794 发布时间:
相关结果约136,467个sub-projects
Common kernel problems
From FedoraProject
This page documents common problems with the
in Fedora.
Kernel boot options are contained in the file /boot/grub/grub.conf. Each installed kernel has a group of lines called a stanza describing:
the title of the operative system to load
where to find the boot partition (in grub named root!)
what kernel (vmlinuz-*) to boot, with additional kernel options
the name of the initrd to load
A typical stanza looks something like this:
title Fedora 13 (2.6.33.5-124.fc13.i686.PAE)
root (hd1,7)
kernel /vmlinuz-2.6.33.5-124.fc13.i686.PAE ro root=/dev/mapper/VG_f13-LV_f13_root rd_LVM_LV=VG_f13/LV_f13_root
rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.33.5-124.fc13.i686.PAE.img
title CentOS 5 (2.6.18-194.3.1.el5)
root (hd0,4)
kernel /vmlinuz-2.6.18-194.3.1.el5 ro root=/dev/mapper/VG_CentOS-LV_CentOS_root
rd_LVM_LV=VG_CentOS/LV_CentOS_root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16
KEYTABLE=us rhgb quiet
initrd /initrd-2.6.18-194.3.1.el5.img
title Ubuntu 10.04 LTS
root (hd0,6)
chainloader (hd0,6)+1
kernel /grub/core.img
savedefault
In this example, we have three OO.SS: Fedora 13 (boot) resides on the eighth partition of the second hard disk. (Remember, that in grub the partition and disk numbers begin from 0); CentOS on the fifth partition of the first disk and Ubuntu on the seventh partition of the first disk.
Kernel options are placed at the end of the kernel line and are separated by spaces. In the example:
ro: mounts root device read-only on boot
root: root filesystem
rd_LVM_LV: it activates the root filesystem in the logical volume LV_f13_root of the volume group VG_f13
rd_NO_LUKS: disables crypto LUKS detection
rd_NO_MD: disables MD RAID detection
rd_NO_DM: disables DM RAID detection
LANG: is the system language, written to /etc/sysconfig/i18n in the initramfs
SYSFONT: is the console font, written to /etc/sysconfig/i18n in the initramfs
KEYTABLE: is the keytable filename, written to /etc/sysconfig/keyboard in the initramfs
rhgb: for graphical boot support
quiet: disables most log messages
For other options view also the wiki .
When having problems, it is usually a good idea to remove the quiet option so that the full set of kernel messages is shown during boot
The full list of kernel options is in the file /usr/share/doc/kernel-doc-&version&/Documentation/kernel-parameters.txt, which is installed with the kernel-doc package.
Module options are set in the file /etc/modprobe.conf, or (with versions of module-init-tools in F10+) on the kernel command line. Drivers that are needed to boot the system are put into an initrd, and their options are copied from modprobe.conf by the mkinitrd script that builds the initrd. To change module options for those drivers, you can change the /etc/modprobe.conf file and rebuild the initrd, or alternatively (in recent releases of Fedora) you can simply append on the kernel command line.
For example, to disable adma mode on an nVidia SATA controller, add these options to the kernel command line (format is &modulename&.&option&=value):
sata_nv.adma=0
Alternatively, add this line to a file in /etc/modprobe.d/:
options sata_nv adma=0
To get options set in /etc/modprobe.d/* into the initrd, run the mkinitrd program.
Usually this is just the command mkinitrd /boot/initrd-$(uname -r).new.img $(uname -r) to build a new initrd for the currently-running kernel without overwriting the exisitng one. (See man mkinitrd for help on additional options.) To test the new initrd, reboot the system and use the command line editing facilities to change the name of the initrd. Or, create a new stanza in the /etc/grub.conf file something like this (see above for the original):
title Fedora Core [with new initrd]
(2.6.29-0.215.rc7.fc11.i586)
root (hd0,1)
kernel /vmlinuz-2.6.29-0.215.rc7.fc11.i586 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.29-0.215.rc7.fc11.i586.new.img
This will let you boot with either the new or the old initrd by pressing the up arrow / down arrow keys on the very first boot screen. Once everything is tested, remove the original initrd and rename the new one to the same name as the old one, then remove the "[with new initrd] " stanza from /etc/grub.conf.
If you are having problems with some update kernels, you may want to increase the maximum number of kernels that yum will leave installed. Edit
/etc/yum.conf
and change the number on the
installonly_limit
line to do that. Note that you will need enough free space in /boot to keep the extra kernels installed.
You may also erase kernels that you know are not working in order to keep older, working kernels from being uninstalled on the next update.
A lot of these bugs end up being a broken initrd due to bugs in mkinitrd. Get the user to attach their initrd for their kernel to the bz, and also their /etc/modprobe.conf, or have them examine the contents themselves if they are capable of that.
Picking apart the initrd of a working and failing kernel and doing a diff of the init script can reveal clues.
To take apart an initrd, do the following ..
mkdir initrd
cd initrd/
gzip -dc /boot/initrd-2.6.23-0.104.rc3.fc8.img | cpio -id
Another way to examine the initrd is with Midnight Commander. Add the extension .cpio.gz to the filename and then just place the cursor over the name and press Enter.
Unsupported mount options like "relatime" in /etc/fstab can cause problems. Removing any references to the "relatime" option and rebuilding the initrd will fix this.
Checking whether or not the CapsLock key (or NumLock or ScrollLock) causes the light on the keyboard to change state can be used as an indication of whether or not the kernel has hung completely, or if there is something else going on.
For boot related issues we need as much info as possible, so removing quiet rhgb from the boot flags should be the first thing to ask for.
Slowing down the speed of text output with boot_delay=1000 (the number may need to be tweaked higher/lower to suit) may allow the user to take a digital camera photo of the last thing on screen.
Booting with vga=791 (or even just vga=1 if the video card won't support 791) will put the framebuffer into high resolution mode to get more lines of text on screen, allowing more context for bug analysis.
initcall_debug will allow to see the last thing the kernel tried to initialise before it hung.
There are numerous switches that change which at times have proven to be useful to diagnose failures by disabling various features.
acpi=off is a big hammer, and if that works, narrowing down by trying pci=noacpi instead may yield clues
nolapic and noapic are sometimes useful
nolapic_timer can be useful on i386; on x86_64 this option is called noapictimer
Given it's new and still seeing quite a few changes, nohz=off and/or highres=off may be worth testing. (Though this is kernel 2.6.21 and above only)
If you get no output at all from the kernel, sometimes booting with earlyprintk=vga can sometimes yield something of interest.
If the kernel locks up with a 'soft lockup' report, booting with nosoftlockup will disable this check allowing booting to continue.
If the kernel locks up really early, booting with edd=skipmbr or edd=off may help
The system can hang because the clock isn't running properly, see
Sometimes the system can hang because it is looking for nonexistent floppy drives. See
Sometimes multiple options are needed, e.g. clocksource=acpi_pm nohz=off highres=off
Try to narrow down the options needed to the absolute minimum. This helps the kernel maintainers find the underlying problem.
If it hangs after "Freeing unused kernel memory: 280k freed" you might have glibc.i686 when your processor is not capable of i686.
Replace it to glibc.i386 and be sure the "i686" and "nosegneg" directories are deleted.
On some machines (mostly laptops with removable floppy drives), boot will pause while the (non-existant) floppy device is probed. A series of the following messages will appear:
end_request: I/O error, dev fd0, sector 0
end_request: I/O error, dev fd0, sector 0
Buffer I/O error on device fd0, logical block 0
This is caused by initrd's nash searching for filesystem labels on the floppy device. This problem can be avoided by adding floppy.allowed_drive_mask=0 to the kernel boot options.
Try pci=nomsi,nommconf. This disables PCI Message Signaled Interrupts and MMCONFIG.
Try booting with libata.dma=1 [use DMA only for hard drives]
or libata.dma=0 [do not use DMA at all] . This can at least get the system installed, then the drivers can be updated.
Try the boot option pci=nocrs on 2.6.34 and later kernels.
The option pcie_aspm=off may be needed by some SCSI and RAID drivers (and some network drivers as well.)
Try disabling the AHCI driver by adding rdblacklist=ahci. This forces the generic drivers to be used, which may work, but sometimes very slowly.
If the system runs very slowly, it may have a BIOS bug that causes part of the system memory to be uncached. Playing with the mem= parameter can work around this problem. Trying for example, mem=1000M will limit the system to 1000 megabytes of memory and may make the install run much faster.
Sometimes, even booting with acpi=off or various other boot command line options, the kernel refuses to boot on some subsets of hardware.
If none of the above tricks helps, then..
In rawhide bugs, if the report is something that would prevent someone from installing the next release (crashes during boot, doesn't find hard disks etc), mark the bug as blocking 'F9Blocker' (bug 235706).
if it's against the previously released version of Fedora, then it's possible that the problem was caused in a kernel bug that has since been fixed upstream. As Fedora constantly rebases to newer upstream kernels, they'll get picked up by the respins done by the folks at
Suggest that the user tries an updated ISO if one is available.
This can be a tricky one to diagnose.
Most users don't have serial console capability, so we're mostly guessing in the dark.
For possible workarounds for this problem, see
If it's repeatable, hooking up a serial cable to a second box can be useful for capturing kernel messages that may get printed just before the lockup.
Configure the machine being debugged to boot with console=ttyS0,115200 console=tty0 and run a terminal program such as minicom on the other end. Configure the remote end to talk at the same baud rate (115200). (In minicom ctrl-a, p, i, enter.
More info on setting up a serial terminal can be found at
Sometimes just getting lsmod output from users can yield enough clues if there are multiple reports and common modules between both. (It also allows to filter out reports from users of nvidia,vmware etc).
Hooking up serial console /
can sometimes get debug info out of the machine.
If the hang happened whilst in X, the machine may still respond to ssh logins from other machines. Try this to get a dmesg.
The magic sysrq key might work. See
for details.
booting with nmi_watchdog=2 may cause a backtrace to occur when the lockup happens.
The most common failure mode is 'black screen on resuming', but the system may also hang while suspending.
Laptops using the nv driver should be considered hibernate-only capable as per
If the system fails to resume, see if the system is locked up completely by hitting the caps lock key.
If the capslock light doesn't toggle, or the failure is during suspend, try again, but this time before suspending, activate the pm_trace functionality with echo 1 & /sys/power/pm_trace. This reprograms the real time clock to contain a few bytes of information which we can use to diagnose which driver failed to suspend or resume. After the hang, reboot, boot up again. Now use the command
dmesg | grep "hash matches"
and you will get a list of matches like this:
hash matches device .1
. The last device on the list is likely the one thats causing problems. To find out which driver is causing the problem you will have to look up the driver in
/sys/bus/pci/drivers/ . This can be done using
find /sys/bus/pci/drivers/ -name ".1" . It will return a path similar to this one:
/sys/bus/pci/drivers/firewire_ohci/.1
which means that the firewire_ohci driver is causing troubles. Unloading the module using
modprobe -r firewire_ohci
should fix the suspend issues. Please also note that pm_trace uses the RTC for storing the data, which will result into a wrong system clock after boot. To fix it just use system-config-date to set the correct date.
If the capslock light does toggle when resuming, then the system did come back up, and it's possible that we just failed to reinitialise the video.
It may be useful to initiate the suspend from a tty (ctrl-alt-f1) and run pm-suspend&#160;; dmesg & dmesg.out&#160;; sync by hand.
Upon resuming you'll now have some more debug info to sift through.
Additionally, this way when it resumes, you already have a console logged in from which you can type commands 'blind'. Trying vbetool post for example may bring things back to life.
Proprietary 3d graphics driver users should test with respective open source drivers.
Try rmmod'ing various modules before doing the suspend. If this makes things work again, retry with a smaller set of modules unloaded. Keep retrying until you narrow down which module is to blame.
Another trick that sometimes works to force video to come back up is to enable the BIOS password. This makes the system resume in a VGA text mode that the kernel recovers from a lot easier. Not a real solution, but it can help to diagnose other problems.
Try a different clock source, e.g.&#160;: clocksource=acpi_pm
Clock sources can be changed at runtime by writing the new clocksource name to the file /sys/devices/system/clocksource/clocksource0/current_clocksource, but be aware that changing to an unstable/broken clock source can hang the system. Changing tsc or jiffies to acpi_pm should be okay. (The list of available sources is in the file available_clocksource in the same directory.)
The kernel's tickless mode is enabled by default in Fedora 7 and 8, but can sometimes cause incorrect timekeeping. Using nohz=off highres=off will disable it.
Many times the model can't be detected properly. Adding the correct model to the sound card driver's entry in /etc/modprobe.d/dist.conf will force the driver to use that model, e.g. options sound-card-0 model=3stack. Options for this driver are documented in the file /usr/share/doc/kernel-doc-&version&/Documentation/sound/alsa/ALSA-Configuration.txt in the kernel-doc package.
Changing the reboot method can work around this problem. To force a reboot method other than the default, use the reboot= kernel option:
forces reboot through the system BIOS.
forces a 'warm" reboot (no memory test.)
These can be combined: reboot=b,w
forces a warm reboot using the system BIOS.
The first thing to do is isolate which part of the boot process is slow to determine if the fault is the kernel, the initrd scripts, or other parts of the boot process.
One way to do this is using the bootchart application.
Install this with yum, and the next time you reboot, profiling will be done during boot which can be collected by running the command bootchart which will generate a .png file containing a graph showing where the time was spent.
If the kernel appears to stall during boot, booting with the boot parameter printk.time=1 will insert timestamps before every message the kernel prints to its ringbuffer.
Retrieve these messages with dmesg, and look for large deltas between two timestamps to isolate (for eg) drivers which may be spending a long time initialising.
In Rawhide/devel kernels (and in -debug flavors of released kernels), Fedora uses the SLUB allocator with full slab debugging enabled by default. The debugging might cause problems in some rare cases: memory allocations can fail, causing the system to panic. Slab debugging can be disabled with the option slub_debug=-
(a single minus sign.)
Note, that this option will hide an actual bug that really should be reported and fixed rather than worked around.
This can be caused by USB autosuspend stopping and starting devices repeatedly. To disable autosuspend globally, use the kernel option
usbcore.autosuspend=-1 .
By default, the kernel only reserves a fairly small amount of memory and I/O space for PC Card adapters. Some adapters need more space, or will not work within the default range of addresses.
The amount of memory allocated can be set using the
kernel option. Default is 64 megabytes, but it can be changed to e.g. 256 megabytes using the option
cbmemsize=256M . Going over 256M is not recommended.
The default for Cardbus IO space is 256 bytes, but it can be changed using
cbiosize , e.g. to change the size to 4096 bytes, use
cbiosize=4096 . Setting this to a value larger than 4096 may cause problems.
Try the kernel parameter
pnpacpi=off
ThinkPad users who see their system throttled as soon as the processor module
gets loaded and without obvious reason should check the contents of this file:
/sys/devices/system/cpu/cpu0/cpufreq/bios_limit
If it is set to the lowest value, you must pass processor.ignore_ppc=1 boot parameter as a workaround.
(See kernel.org bug #16382 for details.)
Try adding the boot option rdblacklist=aesni-intel. You may also have to blacklist the aesni-intel driver by adding a blacklist entry in /etc/modprobe.d.
You can add the option psmouse.force_elantech=1 to force recognition. This requires at least kernel 2.6.34 to work.
Try adding the boot option nouveau.noaccel=1.
This is fixed in recent kernel updates, but can be worked around by adding noserverino to the mount options.
On kernel version 2.6.34 and later, ACPI is used to determine PCI resources. Some machines have bugs in their ACPI BIOS code and fail set configure resources properly. Try using
to disable use of ACPI for resource enumeration.
Heavily-loaded network servers may have trouble allocating memory even though there is no shortage. Try setting the sysctl
vm.min_free_kbytes
to 65536 in order to keep additional memory free for allocation by network drivers.
Copyright & 2015 Red Hat, Inc. and others.
All Rights Reserved.
For comments or queries, please .
The Fedora Project is maintained and driven by the community and sponsored by Red Hat.
This is a community maintained site.
Red Hat is not responsible for content.
This page was last modified on 26 February 2012, at 21:24.}

我要回帖

更多关于 attribution 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信